ReDoS in ssri strict mode (Node.js)
A regular expression denial of service (ReDoS) vulnerability exists in the ssri module for Node.js prior to version 5.2.2. The vulnerability is present in index.js, specifically in the strict mode functionality, where a crafted long base64 hash string can trigger excessive backtracking in a regular expression, leading to resource exhaustion.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
An attacker can cause a denial of service by supplying a specially crafted long base64 hash string, resulting in excessive CPU usage and degraded service availability for applications using the vulnerable ssri module in strict mode.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, avoid processing untrusted or excessively long base64 hash strings in strict mode, or implement request rate limiting and input validation to reduce exposure to this attack vector.
Patch, then assume compromise.
Upgrade the ssri module to version 5.2.2 or later, where the vulnerable regular expression has been fixed to prevent excessive backtracking.
No validated public exploits yet. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.