# CVE-2026-41305

> Vulnerability · severity: **MEDIUM** (CVSS 6.1).

## 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.

## Key facts

- **CVE ID:** CVE-2026-41305
- **Published:** 2026-04-24
- **CVSS severity:** MEDIUM
- **CVSS base score:** 6.1
- **CWE codes:** CWE-79

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-41305

## Citation

> AI Analytics. CVE-2026-41305. Retrieved 2026-07-19 from https://api.ai-analytics.org/cve/CVE-2026-41305. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*