Cyber Security News

14 Million-Download SHA JavaScript Library Exposes Users to Hash Manipulation Attacks

A critical security vulnerability has been discovered in the widely-used sha.js npm package, exposing millions of applications to sophisticated hash manipulation attacks that could compromise cryptographic operations and enable unauthorized access to sensitive systems.

The vulnerability, designated CVE-2025-9288, affects all versions up to 2.4.11 of the library, which has accumulated over 14 million downloads across the JavaScript ecosystem.

Vulnerability Details and Attack Vectors

The security flaw stems from missing input type validation within the sha.js library’s hash calculation mechanism, allowing attackers to manipulate hash states through carefully crafted JSON-stringifiable input.

CVE DetailsInformation
CVE IDCVE-2025-9288
SeverityCritical
CVSS v4 ScoreCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:H/SI:H/SA:N
Affected Packagesha.js (npm)
Affected Versions≤2.4.11

Security researcher ChALkeR discovered that malicious actors can exploit this weakness to rewind hash states, convert tagged hashes into untagged variants, and generate hash collisions that bypass security controls.

The vulnerability manifests in three primary attack scenarios. First, attackers can trigger hash state rewinds using objects with negative length properties, effectively rolling back the cryptographic state to previous values.

Second, the flaw enables value miscalculation attacks where specially crafted objects can produce identical hash outputs for different input data, creating dangerous collision scenarios.

Third, the vulnerability allows for denial-of-service attacks by providing malformed length values that cause the library to hang indefinitely.

The vulnerability has been assigned a critical CVSS v4 base score, reflecting its severe potential impact on both vulnerable and subsequent systems.

The attack vector operates over network connections with high complexity requirements but no user interaction, making it particularly dangerous for automated exploitation scenarios.

The sha.js maintainers have addressed the vulnerability in version 2.4.12, which includes comprehensive input type validation to prevent the identified attack vectors.

Organizations utilizing the affected library should immediately update to the patched version and conduct thorough security assessments of systems that may have been exposed to malicious hash manipulation attempts.

The discovery underscores the critical importance of robust input validation in cryptographic libraries and highlights the cascading security risks that can emerge from seemingly minor implementation oversights in widely-adopted open-source components.

Find this News Interesting! Follow us on Google News, LinkedIn, and X to Get Instant Updates!

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

1 day ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

1 day ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

1 day ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

1 day ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

1 day ago