Plaintext transmission of CSRF tokens in tiny-csrf
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-319.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| valexandersaulys | tiny-csrf | before 1.1.0 | 1.1.0 | Patch available | CNA |
| — | tiny-csrf (npm) | before 1.1.0 | 1.1.0 | Patch available | GHSA-pj2c-h76w-vv6f |
- tiny-csrf Vendorvalexandersaulys Affected before 1.1.0 Fixed in 1.1.0 Patch available CNA
- tiny-csrf (npm) Vendor— Affected before 1.1.0 Fixed in 1.1.0 Patch available GHSA-pj2c-h76w-vv6f
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:tiny-csrf_project:tiny-csrf:*:*:*:*:*:node.js:*:* | before 1.1.0 | Vulnerable | Tiny-csrf Project |
- cpe:2.3:a:tiny-csrf_project:tiny-csrf:*:*:*:*:*:node.js:*:* Versions before 1.1.0 Vulnerable ·Tiny-csrf Project
Remediation
- Fix · CNA tiny-csrf (valexandersaulys) Fixed in 1.1.0
- Fix · GHSA-pj2c-h76w-vv6f tiny-csrf (npm) Fixed in 1.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39287
- 2026-10-03 Alias added: GHSA-pj2c-h76w-vv6f
References
Sources
- CVE-2022-39287 · CVE Program
- CVE-2022-39287 · NVD
- FIRST EPSS
- GHSA-pj2c-h76w-vv6f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences