Advisory

GHSA-5wm8-gmm8-39j9

Also known as: CVE-2026-44665

Summary

fast-xml-builder allows attribute values with unwanted quotes to bypass malicious or unwanted attributes

Details

Summary
When an input data has quotes in attribute values but process entities is not enabled, it breaks the attribute value into multiple attributes. This gives the room for an attacker to insert unwanted attributes to the XML/HTML.

Detail

Malicious Input

{
      a: {
        "@_attr": '" onClick="alert(1)'
      }
}

Output

<a attr="" onClick="alert(1)"></a>

Workarounds
If you're not ignoring attributes then keep processEntities flag true.

Severity

High Basis: The source's own band: HIGH

Dates

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

Affected packages and fixes

fast-xml-builder

npm · All systems

Affected

  • introduced 0, fixed 1.1.7 (semver)

Fixed versions

1.1.7

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