NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2026-44664: fast-xml-builder Comment Value regex can be bypassed

mediumCVSS 3.1 6.1GHSA-45c6-75p6-83cc

Summary The fix for https://github.com/advisories/GHSA-gh4j-gqv2-49f6 in fast-xml-parser sanitizes -- sequences in XML comment content using .replace(/--/g, '- -'). This skip the values containing three consecutive dashes (e.g., ---...), allowing an attacker to break out of an XML comment and inject arbitrary XML/HTML content.

Published May 8, 2026 · Updated May 14, 2026

Affected packages

fast-xml-builder

Ecosystem
npm
Affected
= 1.1.5
Fixed in
1.1.6
Check
npm ls fast-xml-builder

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

The fix for https://github.com/advisories/GHSA-gh4j-gqv2-49f6 in fast-xml-parser sanitizes -- sequences in XML comment content using .replace(/--/g, '- -'). This skip the values containing three consecutive dashes (e.g., --->...), allowing an attacker to break out of an XML comment and inject arbitrary XML/HTML content.

Impact

Any application with comment property enabled allow attacker to inject malicious or unwanted code like JS script tag in the XML/HTML output.

Workarounds

Check for the presence of 3 consecutive dashes externally in the property value used for comment tag.

Credited to amitguptagwl.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries