Regular Expression Denial of Service (ReDoS)
npm ssri 5.2.2-6.0.1 and 7.0.0-8.0.0, processes SRIs using a regular expression which is vulnerable to a denial of service. Malicious SRIs could take an extremely long time to process, leading to denial of service. This issue only affects consumers using the strict option.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | ssri | >= 5.2.2, < 6.0.2, >= 7.0.0, < 7.1.1, >= 8.0.0, < 8.0.1 | 6.0.2, 7.1.1, 8.0.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-27290
- https://github.com/npm/ssri/pull/20#issuecomment-842677644
- https://github.com/npm/ssri/commit/76e223317d971f19e4db8191865bdad5edee40d2
- https://github.com/npm/ssri/commit/809c84d09ea87c3857fa171d42914586899d4538
- https://github.com/npm/ssri/commit/b30dfdb00bb94ddc49a25a85a18fb27afafdfbb1
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://doyensec.com/resources/Doyensec_Advisory_ssri_redos.pdf
- https://github.com/npm/ssri
- https://github.com/yetingli/SaveResults/blob/main/pdf/ssri-redos.pdf
- https://npmjs.com
- https://www.npmjs.com/package/ssri
- https://www.oracle.com/security-alerts/cpuoct2021.html
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-400- Platform
- npm
- Package
ssri- Disclosed
- 19.03.2021
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-vx3p-948g-6vhq - CC BY 4.0
Vulnerability history: ssri
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 03.2018 03.2021
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 1
Disclosures per year
- 2018: 1
- 2019: 0
- 2020: 0
- 2021: 1
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
-
Regular Expression Denial of Service (ReDoS) this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.