Skip to content

PostCSS line return parsing error

Moderate severity GitHub Reviewed Published Sep 30, 2023 to the GitHub Advisory Database • Updated Nov 5, 2023

Package

npm postcss (npm)

Affected versions

< 8.4.31

Patched versions

8.4.31

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.

References

Published by the National Vulnerability Database Sep 29, 2023
Published to the GitHub Advisory Database Sep 30, 2023
Reviewed Oct 3, 2023
Last updated Nov 5, 2023

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

CVE ID

CVE-2023-44270

GHSA ID

GHSA-7fh5-64p2-3v2j

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.