CVE-2021-27290 Regular Expression Denial of Service (ReDoS)
Attackers can cause denial of service via malicious Subresource Integrity strings in the ssri library when the strict option is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-27290?
CVE-2021-27290 is a high-severity denial of service vulnerability in Oracle Graalvm, published on 12 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2021-27290?
6 open source packages ship an affected version, including ssri. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
ssri npm | From 5.2.2 | 6.0.2 |
ssri npm | From 5.2.2 | 6.0.2 |
ssri npm | From 7.0.0 | 7.1.1 |
ssri npm | From 7.0.0 | 7.1.1 |
ssri npm | From 8.0.0 | 8.0.1 |
ssri npm | From 8.0.0 | 8.0.1 |
Products include Oracle Graalvm, Siemens Sinec Infrastructure Network Services, Ssri Project Ssri.
How do I fix CVE-2021-27290?
Upgrade ssri to a fixed version for your release line: 6.0.2, 7.1.1 or 8.0.1.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-27290 being exploited?
There is no known exploitation of CVE-2021-27290 in the wild and no public exploit code.
Other vulnerabilities in Oracle Graalvm
- CVE-2025-50059 Security feature bypass in Oracle GraalVM Enterprise Edition
- CVE-2021-32803 Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning
- CVE-2021-32804 Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization
- CVE-2025-30749 Code injection in Oracle GraalVM Enterprise Edition
- CVE-2025-50106 Code injection in Oracle GraalVM Enterprise Edition
Sources
Also known as ALPINE-CVE-2021-27290, CLSA-2026-1774225210, CLSA-2026-1783731812, DEBIAN-CVE-2021-27290, GHSA-vx3p-948g-6vhq, ROOT-APP-NPM-CVE-2021-27290 and 1 more.