Insecure Cryptography Algorithm in simple-crypto-js
Versions of simple-crypto-js prior to 2.3.0 use AES-CBC with PKCS#7 padding, which is vulnerable to padding oracle attacks. This may allow attackers to break the encryption and access sensitive data.
Recommendation
Upgrade to version 2.3.0 or later.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | simple-crypto-js | < 2.3.0 | 2.3.0 |
References
- https://github.com/danang-id/simple-crypto-js/issues/12
- https://github.com/danang-id/simple-crypto-js/pull/17
- https://github.com/danang-id/simple-crypto-js/commit/416584369de1dad9b21ac3fe85df0b71cf5718b2
- https://github.com/danang-id/simple-crypto-js
- https://robertheaton.com/2013/07/29/padding-oracle-attack
- https://snyk.io/vuln/SNYK-JS-SIMPLECRYPTOJS-544027
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-327- Platform
- npm
- Package
simple-crypto-js- Disclosed
- 03.09.2020
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-5v7r-jg9r-vq44 - CC BY 4.0
Vulnerability history: simple-crypto-js
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.