# CVE-2022-39287: Plaintext transmission of CSRF tokens in tiny-csrf

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2022-10-07T00:00:00.000Z
- Modified: 2026-06-17T04:58:04.520Z
- Also known as: GHSA-pj2c-h76w-vv6f
- Weaknesses: CWE-319
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- valexandersaulys tiny-csrf: < 1.1.0
- tiny-csrf (npm): before 1.1.0
- tiny-csrf_project tiny-csrf: before 1.1.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## 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

- CVE List: [CVE-2022-39287](https://www.cve.org/CVERecord?id=CVE-2022-39287), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-pj2c-h76w-vv6f](https://github.com/advisories/GHSA-pj2c-h76w-vv6f), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-39287](https://nvd.nist.gov/vuln/detail/CVE-2022-39287), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39287 · Whole record: https://cve.day/CVE-2022-39287.json · Rebuilt by cve.day 2026-11-25T22:58:15.478Z
