# GHSA-5v7r-jg9r-vq44: Insecure Cryptography Algorithm in simple-crypto-js

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T21:19:46.000Z
- Modified: 2021-09-29T20:08:01.000Z
- Weaknesses: CWE-327

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- simple-crypto-js (npm): before 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)

## Sources

- GitHub Advisory Database: [GHSA-5v7r-jg9r-vq44](https://github.com/advisories/GHSA-5v7r-jg9r-vq44), CC-BY-4.0, modified 2021-09-29

---

Page: https://cve.day/GHSA-5v7r-jg9r-vq44 · Whole record: https://cve.day/GHSA-5v7r-jg9r-vq44.json · Rebuilt by cve.day 2026-11-25T22:56:44.241Z
