CVE-2021-27290
HIGH7.5EPSS 2.5%Regular Expression Denial of Service (ReDoS)
Published: 3/19/2021Modified: 4/28/2026
Description
ssri 5.2.2-8.0.0, fixed in 8.0.1, 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 packages (3)
- Alpine/nodejsfrom 0, < 14.16.1-r1
- Debian/node-ssrifrom 0, < 8.0.1-1
- npm/ssri>= 5.2.2, < 6.0.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (14)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-27290
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2021-27290
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-27290
- PATCHhttps://github.com/npm/ssri
- WEBhttps://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- WEBhttps://doyensec.com/resources/Doyensec_Advisory_ssri_redos.pdf
- WEBhttps://github.com/npm/ssri/commit/76e223317d971f19e4db8191865bdad5edee40d2
- WEBhttps://github.com/npm/ssri/commit/809c84d09ea87c3857fa171d42914586899d4538
- WEBhttps://github.com/npm/ssri/commit/b30dfdb00bb94ddc49a25a85a18fb27afafdfbb1
- WEBhttps://github.com/npm/ssri/pull/20#issuecomment-842677644
- WEBhttps://github.com/yetingli/SaveResults/blob/main/pdf/ssri-redos.pdf
- WEBhttps://npmjs.com
- WEBhttps://www.npmjs.com/package/ssri
- WEBhttps://www.oracle.com/security-alerts/cpuoct2021.html