---
title: "GHSA-325j-24f4-qv5x: Regular Expression Denial of Service in ssri"
description: "Moderate severity. Regular Expression Denial of Service in ssri. Affects ssri; fixed in 5.2.2."
url: https://inlinr.com/advisories/GHSA-325j-24f4-qv5x
lang: en
---

[Packages](https://inlinr.com/packages) / [ssri](https://inlinr.com/packages/ssri) / [Security](https://inlinr.com/packages/ssri/security)

Moderate Vulnerability GHSA-325j-24f4-qv5x CVE-2018-7651 Published 7 Mar 2018

# Regular Expression Denial of Service in ssri

Your version 

Affected releases · [ssri](https://inlinr.com/packages/ssri)

- 5.x 5.0.0 – 5.2.1 Fixed in 5.2.2
- 4.x and older 0.0.0 – 4.1.6 No fix, no longer updated

On 5.x, the newest line:

```
npm install ssri@5.2.2
```

Every release on a timeline

14.x 

1. Not affected

14.0.0  
1 release, latest

5.x 

1. Affected

5.0.0 – 5.2.1  
3 releases
2. Fixed

5.2.2 – 5.3.0  
4 releases

4.x 

1. Affected

4.0.0 – 4.1.6  
8 releases

3.x 

1. Affected

3.0.0 – 3.0.2  
3 releases

2.x 

1. Affected

2.0.0  
1 release

1.x 

1. Affected

1.0.0  
1 release

0.x 

1. Affected

0.0.0  
1 release

44 stable releases of ssri, oldest to newest, one row per major.

## What happens

Version of `ssri` prior to 5.2.2 are vulnerable to regular expression denial of service (ReDoS) when using strict mode.

Recommendation

Update to version 5.2.2 or later.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: high

CVSS:3.0/​AV:N/​AC:H/​PR:N/​UI:N/​S:U/​C:N/​I:N/​A:H

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-7651 "https://nvd.nist.gov/vuln/detail/CVE-2018-7651")  
nvd.nist.gov/vuln/detail/CVE-2018-7651
- [Issue](https://github.com/zkat/ssri/issues/10 "https://github.com/zkat/ssri/issues/10")  
#10
- [Fix commit](https://github.com/zkat/ssri/commit/d0ebcdc22cb5c8f47f89716d08b3518b2485d65d "https://github.com/zkat/ssri/commit/d0ebcdc22cb5c8f47f89716d08b3518b2485d65d")  
d0ebcdc
- [GitHub advisory](https://github.com/advisories/GHSA-325j-24f4-qv5x "https://github.com/advisories/GHSA-325j-24f4-qv5x")  
github.com/advisories/GHSA-325j-24f4-qv5x
- [Package](https://github.com/zkat/ssri "https://github.com/zkat/ssri")  
github.com/zkat/ssri
- [Reference](https://www.npmjs.com/advisories/565 "https://www.npmjs.com/advisories/565")  
npmjs.com/advisories/565

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
