Skip to main content

fast-xml-builder CVE-2026-44665

MEDIUM
Improper Restriction of XML External Entity Reference (CWE-611)
2026-05-08 https://github.com/NaturalIntelligence/fast-xml-builder GHSA-5wm8-gmm8-39j9
6.1
CVSS 3.1 · Vendor: https://github.com/NaturalIntelligence/fast-xml-builder
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Inject quote character in user input
  2. Delivery
    Application passes input to fast-xml-builder
  3. Exploit
    Library fails to encode quotes in attribute
  4. Install
    Malicious attributes inserted in XML/HTML output
  5. C2
    Victim browser renders output
  6. Execute
    Injected handler executes in victim context
  7. Impact
    Session 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm fast-xml-builder fix: 1.1.7

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

Vendor (https://github.com/NaturalIntelligence/fast-xml-builder) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Red Hat 6.1 MEDIUM

Primary rating from Vendor (https://github.com/NaturalIntelligence/fast-xml-builder).

CVSS VectorVendor: https://github.com/NaturalIntelligence/fast-xml-builder

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
May 13, 2026 - 16:22 NVD
6.1 (MEDIUM)
CVE Published
May 08, 2026 - 16:29 nvd
HIGH

DescriptionCVE.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

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

Workarounds

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

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

Affected Products (CPE)CVE.org

pkg:npm/fast-xml-builder

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy