Advisory

GHSA-45c6-75p6-83cc

Also known as: CVE-2026-44664

Summary

fast-xml-builder Comment Value regex can be bypassed

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-08 16:27 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

fast-xml-builder

npm · All systems

Affected

  • introduced 1.1.5, fixed 1.1.6 (semver)

Fixed versions

1.1.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences