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 package | Versions | Reported by |
|---|---|---|
| NaturalIntelligence fast-xml-builder | < 1.1.7 | CVE List |
| fast-xml-builder (npm) | before 1.1.7 | GitHub Advisory Database |
All scores
| GitHub_M | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 6.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | high CVSS:4.0 | CVSS: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
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44665 changed 2026-05-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5wm8-gmm8-39j9 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-44665 changed 2026-10-26 | Public domain |