Live threats

All CVEs / Tiny-csrf Project

CVE-2022-39287Tiny-csrf Project Tiny-csrf

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
0.6%
probability of exploitation in 30 days · percentile 42
Auth required
No
Published
Oct 7, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-319
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Tiny-csrf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm tiny-csrf < 1.1.0 1.1.0 npm install tiny-csrf@1.1.0

Per OSV / GitHub Advisories (GHSA-pj2c-h76w-vv6f). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
tiny-csrf_projecttiny-csrf< 1.1.0

Official sources

References

Links published by the sources. Open them with care.