CVE-2023-44270
PostCSS line return parsing error
Description
An issue was discovered in PostCSS before 8.4.31. It affects linters using PostCSS to parse external Cascading Style Sheets (CSS). There may be \r discrepancies, as demonstrated by @font-face{ font:(\r/*);} in a rule.
This vulnerability affects linters using PostCSS to parse external untrusted CSS. An attacker can prepare CSS in such a way that it will contains parts parsed by PostCSS as a CSS comment. After processing by PostCSS, it will be included in the PostCSS output in CSS nodes (rules, properties) despite being originally included in a comment.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » postcssvia npm postcss | < 8.4.31 | 8.4.31 |
| org.webjars.npm » postcssvia npm postcss | < 8.4.31 | 8.4.31 |
Blast radius
50% of the dependent artifacts (3) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 5 |
| 2 hops | 1 |
Most used dependents
- org.mvnpm » next8 usages
- org.webjars.npm » css-modules-loader-core2 usages
- org.mvnpm » css-modules-loader-core1 usages
- org.mvnpm » hiq0 usages
- org.mvnpm » sakai-react0 usages
- org.webjars.npm » github-com-JetBrains-ring-ui0 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2023-44270 | nvd.nist.gov |
| Package | postcss/postcss | github.com |
| Web | github/advisory-database issue #2820 | github.com |
| Web | postcss/postcss commit 58cc860 | github.com |
| Web | postcss/postcss tokenize.js | github.com |
| Web | postcss/postcss release 8.4.31 | github.com |
| Web | debian-lts-announce/2024/12/msg00025.html | lists.debian.org |
