mammoth.js vulnerability

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.

Published 4 Oct 2026Updated 4 Oct 20265 sources
CVSS 8.7

Record history

Record created from the first normalized source observation.
Metadata and source references refreshed.