8.1high
Plaintext transmission of CSRF tokens in tiny-csrf
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.53% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pj2c-h76w-vv6f
Description
tiny-csrf is a Node.js cross site request forgery (CSRF) protection middleware. In versions prior to 1.1.0 cookies were not encrypted and thus CSRF tokens were transmitted in the clear. This issue has been addressed in commit `8eead6d` and the patch with be included in version 1.1.0. Users are advised to upgrade. There are no known workarounds for this issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| valexandersaulys tiny-csrf | < 1.1.0 | CVE List |
| tiny-csrf (npm) | before 1.1.0 | GitHub Advisory Database |
| tiny-csrf_project tiny-csrf | before 1.1.0 | NVD |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
tiny-csrf is a Node.js cross site request forgery (CSRF) protection middleware. In versions prior to 1.1.0 cookies were not encrypted and thus CSRF tokens were transmitted in the clear. This issue has been addressed in commit `8eead6d` and the patch with be included in version 1.1.0. Users are advised to upgrade. There are no known workarounds for this issue.
GitHub Advisory Database
Impact
Weak encryption on CSRF so tokens can be read by malicious attackers.
Patches
Problems have been patched as of v1.1.0
Workarounds
Upgrade to v1.1.0
References
For more information
Submit an issue at the github repo
NVD (es)
tiny-csrf es un middleware de protección contra ataques de tipo cross site request forgery (CSRF) de Node.js. En las versiones anteriores a 1.1.0, las cookies no estaban encriptadas y por lo tanto los tokens de tipo CSRF eran transmitidos en claro. Este problema ha sido abordado en el commit "8eead6d' y el parche será incluido en versión 1.1.0. Es recomendado a usuarios actualizar. No se presentan mitigaciones conocidas para este problema
References
| https://github.com/valexandersaulys/tiny-csrf/security/advisories/GHSA-pj2c-h76w-vv6f | third-party-advisory, web | |
| https://github.com/valexandersaulys/tiny-csrf/commit/8eead6da3b56e290512bbe8d20c2c5df3be317ba | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-39287 | advisory | |
| https://github.com/valexandersaulys/tiny-csrf | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-39287 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pj2c-h76w-vv6f changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-39287 changed 2026-06-17 | Public domain |