{"id":"CVE-2022-39287","aliases":["CVE-2022-39287","GHSA-pj2c-h76w-vv6f"],"related":[],"kind":"vulnerability","state":"published","title":"Plaintext transmission of CSRF tokens in tiny-csrf","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWeak encryption on CSRF so tokens can be read by malicious attackers. \n\n### Patches\n\nProblems have been patched as of v1.1.0\n\n### Workarounds\n\nUpgrade to v1.1.0\n\n### References\n\nhttps://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html \n\n### For more information\n\nSubmit an issue at [the github repo](https://github.com/valexandersaulys/tiny-csrf)","format":"markdown","source":"ghsa"},{"lang":"es","text":"tiny-csrf es un middleware de protección contra ataques de tipo cross site request forgery (CSRF) de Node.js. En las versiones anteriores a 1.1.0, las cookies no estaban encriptadas y por lo tanto los tokens de tipo CSRF eran transmitidos en claro. Este problema ha sido abordado en el commit \"8eead6d' y el parche será incluido en versión 1.1.0. Es recomendado a usuarios actualizar. No se presentan mitigaciones conocidas para este problema","source":"nvd"}],"published":"2022-10-07T00:00:00.000Z","modified":"2026-06-17T04:58:04.520Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-319"],"affected":[{"ranges":[{"version":"< 1.1.0","status":"affected"}],"vendor":"valexandersaulys","product":"tiny-csrf","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"npm","package":"tiny-csrf","purl":"pkg:npm/tiny-csrf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.1.0"}],"vendor":"tiny-csrf_project","product":"tiny-csrf","cpe":"cpe:2.3:a:tiny-csrf_project:tiny-csrf:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/valexandersaulys/tiny-csrf/security/advisories/GHSA-pj2c-h76w-vv6f","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/valexandersaulys/tiny-csrf/commit/8eead6da3b56e290512bbe8d20c2c5df3be317ba","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39287","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/valexandersaulys/tiny-csrf","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:48:16.900Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-39287","url":"https://www.cve.org/CVERecord?id=CVE-2022-39287","licence":"CVE Terms of Use","modified":"2025-04-23T16:52:08.633Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pj2c-h76w-vv6f","url":"https://github.com/advisories/GHSA-pj2c-h76w-vv6f","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:17.775Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-39287","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39287","licence":"Public domain","modified":"2026-06-17T04:58:04.520Z"}],"updatedAt":"2026-11-25T22:58:15.478Z","epss":{"score":0.00531,"percentile":0.4636,"date":"2026-12-01T12:00:22.000Z"}}