Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/csrf-lite@0.1.2
purl pkg:npm/csrf-lite@0.1.2
Vulnerabilities affecting this package (0)
Vulnerability Summary Fixed by
This package is not known to be affected by vulnerabilities.
Vulnerabilities fixed by this package (2)
Vulnerability Summary Aliases
VCID-5npf-xayn-6qfa Non-Constant Time String Comparison csrf-lite uses `===`, a fail first string comparison, instead of a time constant string comparison. This enables an attacker being able to calculate minuscule differences in CSRF tokens, essentially enabling them to guess the token one character at a time Each check increases the variable `tempCheck` by one. If a malicious user is able to see what `tempCheck` is at each run (how long it takes to do a check), then they can see when it increases. This increase indicates that the character they just put in for `csrfTokenCompare` is the correct one. GMS-2016-30
VCID-d1xq-9hrf-4qhs Cross-Site Request Forgery (CSRF) 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. CVE-2016-10535
GHSA-hjhr-r3gq-qvp6

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-02T04:38:54.936606+00:00 GitLab Importer Fixing VCID-d1xq-9hrf-4qhs https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/csrf-lite/CVE-2016-10535.yml 38.6.0
2026-06-02T04:36:33.070221+00:00 GitLab Importer Fixing VCID-5npf-xayn-6qfa https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/csrf-lite/GMS-2016-30.yml 38.6.0