fast-xml-builder CVE-2026-44665
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconInject quote character in user input
-
DeliveryApplication passes input to fast-xml-builder
-
ExploitLibrary fails to encode quotes in attribute
-
InstallMalicious attributes inserted in XML/HTML output
-
C2Victim browser renders output
-
ExecuteInjected handler executes in victim context
-
ImpactSession compromise or data exfiltration
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML external entity prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the application to use fast-xml-builder version 1.1.6 or earlier with the processEntities configuration flag explicitly set to false or left disabled. The application must accept attacker-controlled input that flows into XML/HTML attribute values during the object-to-XML conversion process. Additionally, the generated XML/HTML output must be rendered in a context where injected attributes have semantic meaning-typically web browsers interpreting the output as HTML, or XML processors that respect injected attributes in ways that affect security boundaries. Default configurations of fast-xml-builder may have processEntities enabled, meaning only applications that explicitly disabled this feature are vulnerable. The attacker cannot exploit this remotely against the library itself; the vulnerability manifests in applications that consume the library to process untrusted data. |
| Impact | Real-world risk depends heavily on deployment context. No CVSS vector is available, and absence from CISA KEV along with no public POC beyond the advisory demonstration suggests this has not been widely exploited in practice. However, the vulnerability enables a classic injection attack pattern with significant potential impact in affected applications. Risk is highest when: (1) applications accept untrusted input for XML/HTML generation, (2) the processEntities flag is disabled (non-default configuration required), and (3) generated output is rendered in web browsers or processed by XML parsers without additional sanitization. The vulnerability requires developers to have explicitly disabled entity processing, limiting the affected deployment base compared to default-configuration flaws. For applications meeting these conditions, impact can include XSS leading to session hijacking, credential theft, or defacement. The vendor-provided workaround (enable processEntities) and availability of patched version 1.1.7 make remediation straightforward. Organizations not using fast-xml-builder or using it with processEntities enabled face zero risk. This is a configuration-dependent library vulnerability rather than a widespread infrastructure threat. |
| Exploit ScenarioDerived | An attacker identifies a web application using fast-xml-builder 1.1.6 with processEntities disabled to generate HTML from user profiles. The attacker sets their profile attribute to the malicious string '" onClick="alert(document.cookie)' which the application incorporates into an object passed to fast-xml-builder. When the library serializes this to HTML, the unescaped quotes break the intended attribute boundary, resulting in output like <div userdata="" onClick="alert(document.cookie)"></div>. When another user views this profile, the injected onClick handler executes in their browser context, exfiltrating session cookies to the attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Attribute injection in fast-xml-builder npm package allows attackers to inject malicious HTML/XML attributes when processEntities flag is disabled. Affected versions through 1.1.6 fail to properly sanitize quote characters in attribute values, enabling injection of arbitrary attributes like onClick handlers for cross-site scripting attacks. Patch available in version 1.1.7. EPSS and KEV data not available for this vulnerability, suggesting limited observed exploitation targeting this specific library, though the attack technique is well-understood.
RemediationAI
Primary remediation is upgrading to fast-xml-builder version 1.1.7 or later, which properly handles quote characters in attribute values regardless of processEntities setting. For environments unable to upgrade immediately, enable the processEntities flag to true in the library configuration, which activates entity encoding that prevents quote-based attribute injection. This workaround assumes attributes are not being ignored in the configuration. Organizations should audit their fast-xml-builder usage to identify instances where user-controlled data flows into attribute values, then prioritize upgrade or workaround deployment for those code paths. After remediation, validate that generated XML/HTML output correctly encodes quote characters in attributes and does not allow attribute boundary violations. Vendor advisory and fix details available at https://github.com/NaturalIntelligence/fast-xml-builder/security/advisories/GHSA-5wm8-gmm8-39j9.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability affects the fast-xml-builder npm package (pkg:npm/fast-xml-builder), a JavaScript library for programmatically constructing XML/HTML from object structures. The flaw is classified as CWE-611 (Improper Restriction of XML External Entity Reference), though functionally it manifests as an attribute injection weakness. When the processEntities configuration flag is set to false or not enabled, the library fails to escape or encode double-quote characters within attribute values. This allows quote characters to prematurely terminate the intended attribute and begin new attribute-value pairs in the serialized XML/HTML output. The library's parser treats the unescaped quotes as attribute delimiters rather than content, breaking the boundary between developer-controlled structure and attacker-controlled data.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (https://github.com/NaturalIntelligence/fast-xml-builder).
CVSS VectorVendor: https://github.com/NaturalIntelligence/fast-xml-builder
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
The fast-xml-builder npm package (versions ≤1.1.6) contains an attribute injection vulnerability that allows attackers to inject malicious XML/HTML attributes, potentially enabling cross-site scripting attacks in applications processing untrusted XML input. Organizations using this library in production should prioritize immediate upgrade to version 1.1.7 to eliminate the attack surface, particularly if the application accepts user-controlled XML data.
Vendor-released patch: version 1.1.7. If upgrade cannot be deployed immediately: implement strict input validation and allowlisting of expected XML attributes before processing; disable entity processing features if not required for application functionality; apply Web Application Firewall rules to detect and block attribute injection patterns in request payloads.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.
GHSA-5wm8-gmm8-39j9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB