{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-41305","id":"CVE-2026-41305","title":"PostCSS has XSS via Unescaped </style> in its CSS Stringify Output","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 f","descriptionLong":"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.","published":"2026-04-24T02:27:47.719Z","updated":"2026-10-28T02:30:23.160439524Z","reserved":"2026-04-20T14:01:46.670Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["postcss"],"affectedProducts":[{"vendor":"postcss","product":"postcss","defaultStatus":null,"versions":[{"version":"< 8.5.10","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"postcss","purl":"pkg:npm/postcss","ranges":["<8.5.10"],"fixed":["8.5.10"],"advisory":"GHSA-qx2v-qp2m-jg93"}],"cwes":["CWE-79"],"aliases":["GHSA-qx2v-qp2m-jg93"],"references":[{"url":"https://github.com/postcss/postcss/security/advisories/GHSA-qx2v-qp2m-jg93","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/postcss/postcss/releases/tag/8.5.10","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41305.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41305","tags":["advisory"]},{"url":"https://github.com/postcss/postcss","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00205,"epssPercentile":0.10587,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-41305","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41305","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-41305","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qx2v-qp2m-jg93","ok":true,"note":"GHSA-qx2v-qp2m-jg93"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-41305","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}