What’s Vulnerable › Vulnerabilities

CVE-2026-105219: Mammoth.js 1.3.0 before 1.12.3 ReDoS via Style Map Tokeniser

Description

Mammoth.js 1.3.0 before 1.12.3 contains a regular expression denial of service vulnerability in the style map tokeniser in lib/styles/parser/tokeniser.js due to overlapping regex alternatives. Attackers can supply a crafted .docx with an unterminated quoted string of repeated backslash escapes in mammoth/style-map to block the Node.js event loop.

Affected products

How to fix

Upgrade to a fixed version: mwilliamson mammoth.js 1.12.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-105219 or the next vulnerability affects your stack