XML Injection Affecting fast-xml-builder package, versions <1.1.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about XML Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-FASTXMLBUILDER-16133760
  • published23 Apr 2026
  • disclosed17 Apr 2026
  • creditstharvid

Introduced: 17 Apr 2026

NewCVE-2026-41650  (opens in a new tab)
CWE-91  (opens in a new tab)

How to fix?

Upgrade fast-xml-builder to version 1.1.5 or higher.

Overview

Affected versions of this package are vulnerable to XML Injection in fxb.js, which does not properly handle closing delimiters for comment and CDATA values. The --> sequence in comment content and the ]]> sequence in CDATA sections can be coopted to close their respective sections early and inject JavaScript objects that will be executed when the elements are rendered and/or SOAP request is processed.

CVSS Base Scores

version 4.0
version 3.1