Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
HIGH severity

CVE-2021-27290 — ssri

HIGHFix: npm/ssri#20

CVE-2021-27290 is a high-severity (CVSS 7.5) vulnerability in ssri. 2 public exploit references exist, so weaponization risk is real. A fix is available for ssri — see the affected versions and patch details below.

Regular Expression Denial of Service (ReDoS)

Also known asGHSA-vx3p-948g-6vhq
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
2 known
Exploitation data as of Oct 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
4.7%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs92th percentile — riskier than 92% of all scored CVEsHighest risk
1.78%2.99%4.19%5.40%2.7%4.7%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2021-27290 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,386 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

3 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

644other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
ssrinpm
32.9Mdownloads / week

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 total 3 fixed
EcosystemPackageVulnerable rangeFix
📦npmssri≥ 5.2.2&&< 6.0.26.0.2npm install ssri@6.0.2
📦npmssri≥ 7.0.0&&< 7.1.17.1.1npm install ssri@7.1.1
📦npmssri≥ 8.0.0&&< 8.0.18.0.1npm install ssri@8.0.1

Affected Products

3 products · 5 configurations
Application
graalvmoracle
2 versions
20.3.321.2.0
Application
sinec infrastructure network servicessiemens
< 1.0.1.1
range
Application
ssrissri_project
≥ 7.0.0 && < 8.0.1
range
Exploits & PoCs
2

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for ssri, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update ssri to 6.0.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-27290 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

Whilst the OpenShift ServiceMesh (OSSM) servicemesh-grafana and servicemesh-prometheus include the vulnerable ssri library, the vulnerable "strict" option is not used. Similar to OSSM, OpenShift Container Platform (OCP), Red Hat Advance Cluster Management for Kubernetes (RHACM) and OpenShift distributed tracing…

ProductFixed inAdvisory
Red Hat Enterprise Linux 8nodejs:12-8040020210708131418.522a0ee4RHSA-2021:3073
Red Hat Enterprise Linux 8nodejs:14-8040020210708154809.522a0ee4RHSA-2021:3074
Red Hat Enterprise Linux 8.1 Extended Update Supportnodejs:12-8010020210817113128.c27ad7f8RHSA-2021:3639
Red Hat Enterprise Linux 8.2 Extended Update Supportnodejs:12-8020020210817125332.4cda2c84RHSA-2021:3638
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs12-nodejs-0:12.22.2-1.el7RHSA-2021:2931
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-0:14.17.2-1.el7RHSA-2021:2932

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2021-27290 in your dependencies?

Find it across npm, including transitive dependencies.

CVE-2021-27290: ssri DoS — Fixed in 6.0.2