Intel

AIKIDO-2026-74622

mammoth is vulnerable to Denial of Service (DoS)

CVE-2026-105219Published Oct 8, 2026
October 8, 2026

75

CVE Score

High

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The style-map tokeniser matches quoted strings with stringPrefix, a regular expression whose escaped-character alternatives overlap. An unterminated quoted string of repeated backslash escapes in a document style map makes that expression backtrack without bound and blocks the event loop. The fix rewrites stringPrefix so those alternatives no longer overlap.

How do I fix this?

Upgrade the mammoth library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you convert untrusted documents that include a style map.

Package

Versions

1.3.0 - 1.12.2

Fixed in 1.12.3

Background info

mammoth is vulnerable to Denial of Service (DoS) in versions 1.3.0 - 1.12.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea