CVE-2026-61784
Last modified
CVE-2026-61784 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. xhtml-purifier is a Node.js library to take in raw/unknown/untrusted HTML and output cleaned, purified, trusted HTML. Versions prior to 0.4.3 do not HTML-entity-encode attribute values when serializing its sanitized output.
Description
xhtml-purifier is a Node.js library to take in raw/unknown/untrusted HTML and output cleaned, purified, trusted HTML. Versions prior to 0.4.3 do not HTML-entity-encode attribute values when serializing its sanitized output. In attributeString() (XHTMLPurifier.js, around line 148) the attribute value is concatenated directly into a double-quoted attribute without encoding. As a result, an attacker-controlled value in any allowed attribute (class, style, title, alt, src, href) can include a double-quote character to break out of the attribute and inject an additional attribute, such as a JavaScript event handler (for example onmouseover or onerror). The injected handler survives sanitization and executes when the output is rendered, which is a sanitizer bypass leading to cross-site scripting. The fix in version 0.4.3 HTML-entity-encodes attribute values before serialization.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| cstigler | node-xhtml-purifier | < 0.4.3 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-61784?
How severe is CVE-2026-61784?
How do I fix CVE-2026-61784?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-61778NVIDIA Megatron Bridge contains a vulnerability where an att…7.8
- CVE-2026-61779NVIDIA Megatron Bridge contains a vulnerability where an att…7.8
- CVE-2026-6178The Betheme theme for WordPress is vulnerable to Stored Cros…6.4
- CVE-2026-61781pg_partman is a PostgreSQL extension that manages partitione…9.9
- CVE-2026-61782Rsdoctor is a build analyzer tailored for projects built wit…7.5
- CVE-2026-61783Wazuh is an open-source security platform providing unified …6.5
- CVE-2026-61788DBHub is a database MCP server for Postgres, MySQL, SQL Serv…7.4
- CVE-2026-6179Stored Cross Site Scripting in NightWolf Penetration Testing…5.4
- CVE-2026-61790Weblate is a web-based continuous localization platform used…4.4
- CVE-2026-61792Weblate is a web-based continuous localization platform used…7.7
- CVE-2026-61793Nuxt OG Image generates OG Images with Vue templates in Nuxt…6.9
- CVE-2026-61794Capsule is a multi-tenancy and policy-based framework for Ku…6.8
Are you affected by CVE-2026-61784?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
