Update dependency sha.js to v2.4.12 [SECURITY] - autoclosed #304
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.4.10->2.4.12GitHub Vulnerability Alerts
CVE-2025-9288
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
Bufferorstring, 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
PoC
Output:
Or just:
Impact
{length: -x}. This is behind the PoC above, also this way an attacker can turn a tagged hash in cryptographic libraries into an untagged hash.{ length: buf.length, ...buf, 0: buf[0] + 256 }This will result in the same hash as of
buf, but can be treated by other code differently (e.g. bn.js){length:'1e99'}Release Notes
crypto-browserify/sha.js (sha.js)
v2.4.12Compare Source
Commits
7acadfbauto-changelogb46e711df9d521c43c64af2a258ed8d77c0npmignore35aec3573e33ae262913000c7f23buffer,hash-test-vectors,standard,tape,typedarray92b5de59b5eca8>= 4807084cc72789cinherits,safe-buffer5428cfc@ljharb/eslint-config2dbe0aa8938256d528896bufferdep94ca724v2.4.11Compare Source
Merged
#55Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.