Skip to content

Attribute values with unwanted quotes can bypass malicious or unwanted attributes

High
amitguptagwl published GHSA-5wm8-gmm8-39j9 May 4, 2026

Package

npm fast-xml-builder (npm)

Affected versions

< 1.1.6

Patched versions

1.1.7

Description

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

CVE ID

CVE-2026-44665

Weaknesses

No CWEs

Credits