cipher-base is missing type checks, leading to hash rewind and passing on crafted data
- Severity:
- High
Description
This affects e.g. create-hash (and crypto-browserify), so I’ll describe the issue against that package Also affects create-hmac and other packages
Node.js createHash works only on strings or instances of Buffer, TypedArray, or DataView.
Missing input type checks (in npm create-hash polyfill of Node.
Recommendation
Update the cipher-base package to the latest compatible version. Followings are version details:
- Affected version(s): <= 1.0.4
- Patched version(s): 1.0.5
References
Related Issues
- sha.js is missing type checks leading to hash rewind and passing on crafted data - CVE-2025-9288
- ts-asn1-der has Incorrect DER Encoding of Numbers Leading to Denial of Service and Incorrect Value Representation - CVE-2025-32029
- Mermaid does not properly sanitize architecture diagram iconText leading to XSS - CVE-2025-54880
- vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes - @intlify/core-base - CVE-2025-53892
You might also like:
- Tags:
- npm
- cipher-base
Anything's wrong? Let us know Last updated on November 03, 2025


