Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. sha.js
  4. ›
  5. CVE-2025-9288

CVE-2025-9288: sha.js is missing type checks leading to hash rewind and passing on crafted data

August 21, 2025 (updated November 3, 2025)

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.

References

  • github.com/advisories/GHSA-95m3-7q98-8xr5
  • github.com/browserify/sha.js
  • github.com/browserify/sha.js/commit/f2a258e9f2d0fcd113bfbaa49706e1ac0d979ba5
  • github.com/browserify/sha.js/pull/78
  • github.com/browserify/sha.js/security/advisories/GHSA-95m3-7q98-8xr5
  • lists.debian.org/debian-lts-announce/2025/09/msg00016.html
  • nvd.nist.gov/vuln/detail/CVE-2025-9288
  • www.cve.org/CVERecord?id=CVE-2025-9287

Code Behaviors & Features

Detect and mitigate CVE-2025-9288 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.4.12

Fixed versions

  • 2.4.12

Solution

Upgrade to version 2.4.12 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

npm/sha.js/CVE-2025-9288.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:01 +0000.