USN-7778-1: sha.js vulnerability

Publication date

25 September 2025

Overview

sha.js could be made to consume resources or return incorrect hash values if it received specially crafted input.


Packages

  • node-sha.js - Streamable SHA hashes in pure javascript

Details

Nikita Skovoroda discovered that sha.js did not properly handle
certain inputs. An attacker could possibly use this issue to manipulate
the internal state of hash functions, resulting in hash collisions,
denial of service, or other unspecified impact.

Nikita Skovoroda discovered that sha.js did not properly handle
certain inputs. An attacker could possibly use this issue to manipulate
the internal state of hash functions, resulting in hash collisions,
denial of service, or other unspecified impact.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
25.04 plucky node-sha.js –  2.4.11+~2.4.0-2+deb13u1build0.25.04.1
24.04 noble node-sha.js –  2.4.11+~2.4.0-2+deb13u1build0.24.04.1
22.04 jammy node-sha.js –  2.4.11+~2.4.0-1ubuntu0.1
20.04 focal node-sha.js –  2.4.11-2ubuntu0.1~esm1  
18.04 bionic node-sha.js –  2.4.9-1ubuntu0.1~esm1  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›