# CVE-2026-41305: PostCSS has XSS via Unescaped </style> in its CSS Stringify Output

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-24T02:27:47.719Z
- Modified: 2026-09-10T03:51:02.916Z
- Also known as: GHSA-qx2v-qp2m-jg93
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- postcss postcss: < 8.5.10
- postcss (npm): before 8.5.10

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/postcss/postcss/security/advisories/GHSA-qx2v-qp2m-jg93> (exploit, web)
- <https://github.com/postcss/postcss/releases/tag/8.5.10> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41305> (advisory)
- <https://github.com/postcss/postcss> (package)

## Sources

- CVE List: [CVE-2026-41305](https://www.cve.org/CVERecord?id=CVE-2026-41305), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-qx2v-qp2m-jg93](https://github.com/advisories/GHSA-qx2v-qp2m-jg93), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41305](https://nvd.nist.gov/vuln/detail/CVE-2026-41305), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-41305 · Whole record: https://cve.day/CVE-2026-41305.json · Rebuilt by cve.day 2026-11-25T22:59:19.451Z
