Vulnerability · Published Oct 7, 2022 · Assigned by GitHub_M
CVE-2022-39287Plaintext transmission of CSRF tokens in tiny-csrf
High 8.1
In plain English
A high-severity security flaw in tiny-csrf from valexandersaulys. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | tiny-csrf | 1.1.0 | GHSA-pj2c-h76w-vv6f |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| valexandersaulys | tiny-csrf | < 1.1.0 |
Weakness: CWE-319 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N