mammoth is vulnerable to Denial of Service (DoS)
75
High Risk
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.
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.
mammoth is vulnerable to Denial of Service (DoS) in versions 1.3.0 - 1.12.2.
Upgrade the mammoth library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.