CVE-2021-27290
JSON

7.5high

Regular Expression Denial of Service (ReDoS)

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
4.72% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-vx3p-948g-6vhq

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
ssri (npm)from 5.2.2 before 6.0.2, from 7.0.0 before 7.1.1, from 8.0.0 before 8.0.1GitHub Advisory Database
ssri_project ssrifrom 5.2.2 before 6.0.2, from 7.0.0 before 8.0.1NVD
oracle graalvm20.3.3, 21.2.0NVD
siemens sinec_infrastructure_network_servicesbefore 1.0.1.1NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

ssri versión 5.2.2-8.0.0, corregido en versión 8.0.1, procesa los SRI usando una expresión regular que es vulnerable a una denegación de servicio. Los SRI maliciosos pueden tardar mucho en procesarse, conllevando a una denegación del servicio. Este problema solo afecta a consumidores que usan la opción estricta

References

https://npmjs.comproduct, web
https://www.oracle.com/security-alerts/cpuoct2021.htmlpatch, third-party-advisory, web
https://doyensec.com/resources/Doyensec_Advisory_ssri_redos.pdfexploit, patch, third-party-advisory, web
https://github.com/yetingli/SaveResults/blob/main/pdf/ssri-redos.pdfexploit, third-party-advisory, web
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfpatch, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-27290advisory
https://github.com/npm/ssri/pull/20#issuecomment-842677644web
https://github.com/npm/ssri/commit/76e223317d971f19e4db8191865bdad5edee40d2web
https://github.com/npm/ssri/commit/809c84d09ea87c3857fa171d42914586899d4538web
https://github.com/npm/ssri/commit/b30dfdb00bb94ddc49a25a85a18fb27afafdfbb1web
https://github.com/npm/ssripackage
https://www.npmjs.com/package/ssriweb

Sources

SourceRecordLicence
CVE ListCVE-2021-27290 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-vx3p-948g-6vhq changed 2023-11-08CC-BY-4.0
NVDCVE-2021-27290 changed 2026-06-17Public domain