XML Injection Vulnerability in node-webfont Package - CVE-2026-41650

node-webfont Updated 08 May 2026

Summary

07/05/2026
N/A
No i
Medium
6.1

DEBIAN-CVE-2026-41650: fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Affects node-webfont versions 11.4.0+dfsg2+~cs35.7.26-10 – 11.4.0+dfsg2+~cs35.7.26-9. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The node-webfont package is a tool that allows developers to generate web fonts from various font formats. It simplifies the process of integrating custom fonts into web applications. However, prior to version 5.7.0, it was found to be vulnerable to XML injection due to improper handling of XML comments and CDATA sections.

Vulnerability Detail

The vulnerability arises from the fast-xml-parser library used in node-webfont, which does not escape the "-->" sequence in comments or the "]]>" sequence in CDATA sections when constructing XML from JavaScript objects. This flaw allows attackers to inject malicious XML content, potentially leading to cross-site scripting (XSS), SOAP injection, or data manipulation. The issue has been patched in version 5.7.0 of the library.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If you cannot immediately update the package, consider sanitizing user input that may flow into XML comments or CDATA sections. This can be done by validating and escaping any user-controlled data before processing it with the node-webfont package.

Conclusion

The XML injection vulnerability in the node-webfont package (CVE-2026-41650) poses significant risks to applications that utilize this package. It is crucial to update to the patched version 5.7.0 to mitigate these risks. Additionally, consider implementing input sanitization as a temporary workaround until the update can be applied.

See every vulnerability recorded for node-webfont →

Share this vulnerability

FAQ

CVE-2026-41650 is a vulnerability in the node-webfont package that allows XML injection due to improper handling of XML comments and CDATA sections.

Exploiting this vulnerability can lead to XSS attacks, SOAP injection, or data manipulation, compromising the security and integrity of your application.

All versions of node-webfont prior to 5.7.0 are affected by this vulnerability.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.

The CVSS score for this vulnerability is 6.1, indicating a moderate level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for node-webfont.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback