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.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.5%top 55.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmtiny-csrf1.1.0GHSA-pj2c-h76w-vv6f

Affected products (as reported)

VendorProductVersions
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

References