GHSA-5v7r-jg9r-vq44
MEDIUM 5.9CVSS 3.1Insecure 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.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | simple-crypto-js | < 2.3.0 | 2.3.0 |
References
- https://github.com/danang-id/simple-crypto-js/issues/12 · WEB
- https://github.com/danang-id/simple-crypto-js/pull/17 · WEB
- https://github.com/danang-id/simple-crypto-js/commit/416584369de1dad9b21ac3fe85df0b71cf5718b2 · WEB
- https://github.com/danang-id/simple-crypto-js · PACKAGE
- https://robertheaton.com/2013/07/29/padding-oracle-attack · WEB
- https://snyk.io/vuln/SNYK-JS-SIMPLECRYPTOJS-544027 · WEB
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Sep 2020)