CVE-2026-41305
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 fixes the issue.
INFO
Published Date :
April 24, 2026, 3:16 a.m.
Last Modified :
April 24, 2026, 5:16 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update PostCSS to version 8.5.10 or later.
- Verify CSS escaping to prevent XSS.
- Ensure HTML style tags are sanitized.
Public PoC/Exploit Available at Github
CVE-2026-41305 has a 4 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-41305.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-41305 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-41305
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Fxmily — suivi comportemental des membres de la formation de trading (PWA, Next.js 16 + Prisma 7)
JavaScript TypeScript CSS
A modern, secure, dashboard-first reverse proxy built in Rust. Single binary, embedded control plane, optional WAF. Powered by Pingora.
control-plane reverse-proxy sysops waf
Rust Shell HTML Svelte CSS TypeScript JavaScript Dockerfile Python Go
AI model trainer with SD-Scripts support, as well as standard auto-tagging, step calculator, and real-time training monitoring. Featuring Civitai model downloading, model merging and more. NextJS/React Based UI with Shadcn components.
lora nextjs15 shadcn-ui stable-diffusion flux-architecture machine-learning nodejs sd-scripts trainer training
Python Shell Batchfile JavaScript TypeScript CSS
Inventory Tracker for Dune: Awakening
JavaScript TypeScript CSS
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-41305 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-41305 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Apr. 24, 2026
Action Type Old Value New Value Added Reference https://github.com/postcss/postcss/security/advisories/GHSA-qx2v-qp2m-jg93 -
New CVE Received by [email protected]
Apr. 24, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Added CWE CWE-79 Added Reference https://github.com/postcss/postcss/releases/tag/8.5.10 Added Reference https://github.com/postcss/postcss/security/advisories/GHSA-qx2v-qp2m-jg93