{"id":"CVE-2016-10535","published":"2018-05-31T20:00:00Z","modified":"2024-09-17T01:30:58Z","title":"csrf-lite is a cross-site request forgery protection library for framework-less node sites. csrf-lite uses `===`, a…","vendor":"HackerOne","product":"csrf-lite node module","tier":"tail","description":{"text":"csrf-lite is a cross-site request forgery protection library for framework-less node sites. csrf-lite uses `===`, a fail first string comparison, instead of a time constant string comparison This enables an attacker to guess the secret in no more than (16*18)288 guesses, instead of the 16^18 guesses required were the timing attack not present.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01257,"percentile":0.70272,"provenance":"source"},"cwes":[{"id":"CWE-208","name":"Observable Timing Discrepancy"}],"references":[{"url":"https://nodesecurity.io/advisories/94","tags":["x_refsource_MISC"]},{"url":"https://github.com/isaacs/csrf-lite/pull/1","tags":["x_refsource_MISC"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":14.05}]},"vendorSlug":"hackerone","affectedVersions":[{"vendor":"HackerOne","product":"csrf-lite node module","versions":["<=0.1.1"]}],"affected":[{"ecosystem":"npm","package":"csrf-lite","vulnerableRanges":["<0.1.2"],"patched":["0.1.2"],"from":["GHSA-hjhr-r3gq-qvp6"],"provenance":"source"}],"summary":{"text":"The csrf-lite node module, a cross-site request forgery protection library for framework-less Node sites, compares secrets using a fail-first string comparison (===) instead of a constant-time comparison, creating an observable timing discrepancy. An attacker with network access to the affected site can exploit the timing difference to recover the CSRF secret in far fewer guesses than brute force would require.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:37Z"},"euvd":{"id":"EUVD-2019-0303","exploited":false,"provenance":"source"}}