Description (CNA)
PostCSS takes a CSS file and provides an API to analyze and modify its rules by transforming the rules into an Abstract Syntax Tree. Versions prior to 8.5.10 do not escape `</style>` sequences when stringifying CSS ASTs. When user-submitted CSS is parsed and re-stringified for embedding in HTML `<style>` tags, `</style>` in CSS values breaks out of the style context, enabling XSS. Version 8.5.10 fixes the issue.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| postcss / postcss | affected < 8.5.10 |
CWE
CWE-79
References
- https://github.com/postcss/postcss/security/advisories/GHSA-qx2v-qp2m-jg93
- https://github.com/postcss/postcss/releases/tag/8.5.10
ADP enrichment
No English description supplied.