Advisory

GHSA-7fh5-64p2-3v2j

Also known as: CVE-2023-44270

Summary

PostCSS line return parsing error

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-09-30 00:31 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

postcss

npm · All systems

Affected

  • introduced 0, fixed 8.4.31 (semver)

Fixed versions

8.4.31

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences