{"id":"GHSA-xp5g-jhg3-3rg2","summary":"Double spend in snarkjs","details":"iden3 snarkjs through 0.6.11 allows double spending because there is no validation that the publicSignals length is less than the field modulus.","aliases":["CVE-2023-33252"],"modified":"2023-11-08T04:12:40.305994Z","published":"2023-05-22T00:30:20Z","database_specific":{"cwe_ids":["CWE-862"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-05-22T19:37:12Z","nvd_published_at":"2023-05-21T22:15:14Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-33252"},{"type":"PACKAGE","url":"https://github.com/iden3/snarkjs"},{"type":"WEB","url":"https://github.com/iden3/snarkjs/commits/master/src/groth16_verify.js"},{"type":"WEB","url":"https://github.com/iden3/snarkjs/tags"}],"affected":[{"package":{"name":"snarkjs","ecosystem":"npm","purl":"pkg:npm/snarkjs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.6.11"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/05/GHSA-xp5g-jhg3-3rg2/GHSA-xp5g-jhg3-3rg2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}