CVE-2026-44665
JSON

6.1medium

fast-xml-builder: Attribute values with unwanted quotes can bypass malicious or unwanted attributes

Severity
6.1medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-5wm8-gmm8-39j9

Description

fast-xml-builder builds XML from JSON. Prior to 1.1.7, 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. This vulnerability is fixed in 1.1.7.

Affected

Product or packageVersionsReported by
NaturalIntelligence fast-xml-builder< 1.1.7CVE List
fast-xml-builder (npm)before 1.1.7GitHub Advisory Database

All scores

GitHub_M6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Classification

CWE-91CWE-611

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

fast-xml-builder builds XML from JSON. Prior to 1.1.7, 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. This vulnerability is fixed in 1.1.7.

GitHub Advisory Database

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.

NVD (es)

fast-xml-builder construye XML a partir de JSON. Antes de 1.1.7, cuando un dato de entrada tiene comillas en los valores de los atributos pero el procesamiento de entidades no está habilitado, divide el valor del atributo en múltiples atributos. Esto da pie a que un atacante inserte atributos no deseados en el XML/HTML. Esta vulnerabilidad está corregida en 1.1.7.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-44665 changed 2026-05-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-5wm8-gmm8-39j9 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-44665 changed 2026-10-26Public domain