{"id":"CVE-2022-39287","published":"2022-10-07T00:00:00Z","modified":"2025-04-23T16:52:08Z","title":"Plaintext transmission of CSRF tokens in tiny-csrf","vendor":"valexandersaulys","product":"tiny-csrf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0052,"percentile":0.45092,"provenance":"source"},"cwes":[{"id":"CWE-319","name":"Cleartext Transmission of Sensitive Information"}],"references":[{"url":"https://github.com/valexandersaulys/tiny-csrf/security/advisories/GHSA-pj2c-h76w-vv6f","tags":[]},{"url":"https://github.com/valexandersaulys/tiny-csrf/commit/8eead6da3b56e290512bbe8d20c2c5df3be317ba","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":9.02},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"valexandersaulys","affectedVersions":[{"vendor":"valexandersaulys","product":"tiny-csrf","versions":["< 1.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:48:16.900784Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tiny-csrf","vulnerableRanges":["<1.1.0"],"patched":["1.1.0"],"from":["GHSA-pj2c-h76w-vv6f"],"provenance":"source"}],"summary":{"text":"The flaw is in tiny-csrf, a Node.js CSRF protection middleware from valexandersaulys, where cookies are not encrypted, so CSRF tokens are transmitted in cleartext. An attacker who can observe the network traffic, with no authentication required but with a victim needing to take some user action, can capture these tokens and use them to forge cross-site requests.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:09Z"},"euvd":{"id":"EUVD-2022-7145","exploited":false,"provenance":"source"}}