Security Digest · Vulnerability record
CVE-2025-9288: sha.js is missing type checks leading to hash rewind and passing on crafted data
Improper Input Validation vulnerability in sha.js allows Input Data Manipulation.This issue affects sha.js: through 2.4.11.
CVSS 9.1 Critical EPSS 0.7% · p54
Should you act?
Critical and remotely reachable
No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.
- Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.7%, percentile 54: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 54% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes
sha.js(npm) <= 2.4.11, fixed in 2.4.12. Check your lockfile, including transitive dependencies.
What it is
Improper Input Validation vulnerability in sha.js allows Input Data Manipulation.This issue affects sha.js: through 2.4.11.
From the GitHub advisory
Summary
This is the same as GHSA-cpq7-6gpm-g9rc but just for sha.js, as it has its own implementation.
Missing input type checks can allow types other than a well-formed Buffer or string, resulting in invalid values, hanging and rewinding the hash state (including turning a tagged hash into an untagged hash), or other generally undefined behaviour.
Details
See PoC
Weakness type: CWE-20.
Product: sha.js (npm) · Assigned by: harborist · Published: 2025-08-20
Affected and fixed versions
| Ecosystem | Package | Vulnerable | First fixed |
|---|---|---|---|
| npm | sha.js | <= 2.4.11 | 2.4.12 |
| Vendor | Product | Affected versions (per CVE record) |
|---|---|---|
| sha.js | <= 2.4.11 |
Severity scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| harborist | 4.0 | 9.1 Critical | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:H/SI:H/SA:N |
| GitHub | 4.0 | 9.1 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:H/SI:H/SA:N |
- Attack vector: network (remotely reachable)
- Attack complexity: high (needs special conditions)
- Attack requirements: present (depends on deployment conditions)
- Privileges required: none (no login)
- User interaction: none
CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.
Exploitation and urgency
- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc, automatable no, technical impact partial.
- FIRST EPSS (model of 2026-10-21): 0.74% probability of exploitation activity in the next 30 days; percentile 54.
Timeline
- — CVE record published by harborist
- — GitHub-reviewed advisory GHSA-95m3-7q98-8xr5 published (critical)
- — CVE record last updated
Sources and references
Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.
Vendor and project advisories, patches
- github.com github.com
- github.com github.com
Vulnerability records
- GitHub Advisory GHSA-95m3-7q98-8xr5 github.com
- CVE.org record CVE-2025-9288 cve.org
- NVD entry CVE-2025-9288 nvd.nist.gov
Other references from the CVE record and advisory
- cve.org cve.org
- lists.debian.org lists.debian.org
- github.com github.com