{"id":"CVE-2024-53441","aliases":["EUVD-2024-3476","GHSA-h63v-hw6g-x8hp"],"status":"published","title":"Bit flip attack vulnerability in cookie-encrypter","description":"An issue in the index.js decryptCookie function of cookie-encrypter v1.0.1 allows attackers to execute a bit flipping attack.","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-09","score":0.00286,"percentile":0.21236,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-325","CWE-327"],"published":"2024-12-09T00:00:00Z","modified":"2026-06-17T08:08:53Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"cookie-encrypter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.1"}]}]},{"source":"osv","ecosystem":"npm","package":"cookie-encrypter","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.0.1"}]}]}],"references":[{"url":"https://gist.github.com/mathysEthical/f45f1503f87381090e38a33c50eec971","tags":["web"]},{"url":"https://mathys.reboux.pro/CVE/2024/53441","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53441","tags":["advisory"]},{"url":"https://github.com/ebourmalo/cookie-encrypter/issues/9","tags":["web"]},{"url":"https://crypto.stackexchange.com/questions/66085/bit-flipping-attack-on-cbc-mode","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h63v-hw6g-x8hp"},{"url":"https://github.com/ebourmalo/cookie-encrypter","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-53441","description":"An issue in the index.js decryptCookie function of cookie-encrypter v1.0.1 allows attackers to execute a bit flipping attack.","status":"published","published":"2024-12-09T00:00:00Z","modified":"2024-12-11T20:45:11.118Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"adp"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T14:34:17.523201Z"}],"euvd":[{"id":"EUVD-2024-3476","description":"An issue in the index.js decryptCookie function of cookie-encrypter v1.0.1 allows attackers to execute a bit flipping attack.","status":"published","published":"2024-12-09T00:00:00Z","modified":"2024-12-11T20:45:11Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"updated_at":"2026-11-03T00:04:36.46341Z"}],"ghsa":[{"id":"GHSA-h63v-hw6g-x8hp","title":"Bit flip attack vulnerability in cookie-encrypter","description":"due to a weakness in the encryption method used in cookie-encrypter an attack can use the world visible IV to edit encrypted cookies without decrypting the cookie itself. This is known as an AES CBC bit flipping attack.","status":"published","published":"2024-12-09T21:31:02Z","modified":"2024-12-12T15:31:49Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","level":"high"}],"cwes":["CWE-325","CWE-327"],"updated_at":"2026-11-02T14:38:25.334027Z"}],"nvd":[{"id":"CVE-2024-53441","description":"An issue in the index.js decryptCookie function of cookie-encrypter v1.0.1 allows attackers to execute a bit flipping attack.","status":"published","published":"2024-12-09T20:15:20.8Z","modified":"2026-06-17T08:08:53.62Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"secondary"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T14:10:39.434419Z"}],"osv":[{"id":"GHSA-h63v-hw6g-x8hp","title":"Bit flip attack vulnerability in cookie-encrypter","description":"due to a weakness in the encryption method used in cookie-encrypter an attack can use the world visible IV to edit encrypted cookies without decrypting the cookie itself. This is known as an AES CBC bit flipping attack.","status":"published","published":"2024-12-09T21:31:02Z","modified":"2024-12-11T21:57:14.153362Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","level":"high"}],"cwes":["CWE-325","CWE-327"],"updated_at":"2026-11-02T15:46:48.546324Z"}]}}
