CVE-2022-39287
MEDIUM 6.5CVSS 3.1tiny-csrf has openly visible CSRF tokens
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.
- Published
- 7 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-319
- Also known as
- GHSA-pj2c-h76w-vv6f
- Sources
- NVDJSONOSV GHSA-pj2c-h76w-vv6fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tiny-csrf_project | tiny-csrfcpe:2.3:a:tiny-csrf_project:tiny-csrf:*:*:*:*:*:node.js:*:* |
< 1.1.0 | 1.1.0 |
| OSV | npm | tiny-csrf | < 1.1.0 | 1.1.0 |
References
- https://github.com/valexandersaulys/tiny-csrf/commit/8eead6da3b56e290512bbe8d20c2c5df3be317ba · Patch, Third Party Advisory, WEB
- https://github.com/valexandersaulys/tiny-csrf/security/advisories/GHSA-pj2c-h76w-vv6f · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39287 · ADVISORY
- https://github.com/valexandersaulys/tiny-csrf · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 7 Oct 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Oct 2022)