{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-42476","published":"2024-08-15T19:15:19.753000Z","last_modified":"2026-06-17T07:49:31.563000Z","status":"Deferred","cvss":{"version":"3.1","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-352"],"cpes":[],"cpes_truncated":false,"vendors":["cordea"],"products":["cordea/oauth"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00392,"percentile":0.25076,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":54,"links":{"html_es":"/es/cve/CVE-2024-42476/","html_en":"/en/cve/CVE-2024-42476/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-42476","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-42476"},"untrusted":{"vendor_name":"CORDEA","product_name":"oauth","desc_en":"In the OAuth library for nim prior to version 0.11, the Authorization Code grant and Implicit grant both rely on the `state` parameter to prevent cross-site request forgery (CSRF) attacks where a resource owner might have their session associated with protected resources belonging to an attacker. When this project is compiled with certain compiler flags set, it is possible that the `state` parameter will not be checked at all, creating a CSRF vulnerability. Version 0.11 checks the `state` parameter using a regular `if` statement or `doAssert` instead of relying on a plain `assert`. `doAssert` will achieve the desired behavior even if `-d:danger` or `--assertions:off` is set.","affected":[{"untrusted_vendor":"CORDEA","untrusted_product":"oauth","versions":[]}],"references":[{"url":"https://github.com/CORDEA/oauth/blob/b8c163b0d9cfad6d29ce8c1fb394e5f47182ee1c/src/oauth2.nim#L235","tags":[]},{"url":"https://github.com/CORDEA/oauth/blob/b8c163b0d9cfad6d29ce8c1fb394e5f47182ee1c/src/oauth2.nim#L255","tags":[]},{"url":"https://github.com/CORDEA/oauth/security/advisories/GHSA-pc9j-53g7-5x54","tags":[]}]}}