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

Published Oct 4, 2026
·
Updated

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 Software

1 affected component
npm/mammoth>=1.3.0<1.12.3

Event History

Oct 4, 2026
CVE Published
via MITRE·05:09 PM
Data Sourced
via MITRE·05:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Applications using the npm mammoth package from version 1.3.0 through versions before 1.12.3 are affected. Exposure is relevant where an attacker can cause the application to process a crafted .docx file.

2

What does an attacker need to provide to trigger the denial of service?

The attacker needs to supply a .docx containing a mammoth/style-map entry with an unterminated quoted string made of repeated backslash escapes. No authentication or user interaction is required according to the supplied vector.

3

What is the operational impact of successful exploitation?

Processing the crafted document can block the Node.js event loop, causing a denial of service. The provided severity vector indicates availability impact without confidentiality or integrity impact.

4

How can I determine whether my application is affected?

Check the installed npm/mammoth version and whether the application processes .docx files that could contain attacker-controlled mammoth/style-map data. Versions before 1.12.3 within the affected range should be treated as vulnerable.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203