CVE-2024-42476
published medium CVSS 3.1 · 6.5oauth CSRF vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| CORDEA | — | oauth< 0.11 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| CORDEA | oauth | < 0.11 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-352 CWE-352: Cross-Site Request Forgery (CSRF)
References
3Provider assertions
2GitHub_M · cna
oauth CSRF vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 761e6fa393720db7d5e6548d145127b715fd92343b62f050dfcd29dc655b9585
- Ingested
- 23 Sep 2026, 08:26:47 UTC
- Source record
- Official CVE record