{"url":"http://public2.vulnerablecode.io/api/packages/373525?format=json","purl":"pkg:npm/fast-jwt@6.2.1","type":"npm","namespace":"","name":"fast-jwt","version":"6.2.1","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"6.2.4","latest_non_vulnerable_version":"6.2.4","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/67729?format=json","vulnerability_id":"VCID-33md-72rd-pydv","summary":"fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.2.4, a critical authentication-bypass vulnerability in fast-jwt's async key-resolver flow allows any unauthenticated attacker to forge arbitrary JWTs that are accepted as authentic. When the application's key resolver returns an empty string (''), for example via the common keys[decoded.header.kid] || '' JWKS-style fallback, fast-jwt converts it to a zero-length Buffer, hands it to crypto.createSecretKey, derives allowedAlgorithms = ['HS256','HS384','HS512'] from it, and then verifies the token's signature against an empty-key HMAC. The attacker simply computes HMAC-SHA256(key='', input='${header}.${payload}'), which Node accepts without complaint — and the verifier returns the attacker-chosen payload (sub, admin, scopes, etc.) as authentic. This vulnerability is fixed in 6.2.4.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-44351","reference_id":"","reference_type":"","scores":[{"value":"0.00016","scoring_system":"epss","scoring_elements":"0.03926","published_at":"2026-06-13T12:55:00Z"},{"value":"0.00016","scoring_system":"epss","scoring_elements":"0.03917","published_at":"2026-06-11T12:55:00Z"},{"value":"0.00016","scoring_system":"epss","scoring_elements":"0.03936","published_at":"2026-06-12T12:55:00Z"},{"value":"0.00023","scoring_system":"epss","scoring_elements":"0.06819","published_at":"2026-06-14T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-44351"},{"reference_url":"https://github.com/nearform/fast-jwt","reference_id":"","reference_type":"","scores":[{"value":"9.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/nearform/fast-jwt"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44351","reference_id":"","reference_type":"","scores":[{"value":"9.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44351"},{"reference_url":"https://github.com/advisories/GHSA-gmvf-9v4p-v8jc","reference_id":"GHSA-gmvf-9v4p-v8jc","reference_type":"","scores":[{"value":"CRITICAL","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-gmvf-9v4p-v8jc"},{"reference_url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-gmvf-9v4p-v8jc","reference_id":"GHSA-gmvf-9v4p-v8jc","reference_type":"","scores":[{"value":"9.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"value":"CRITICAL","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:Y/T:T/P:M/B:A/M:M/D:T/2026-05-14T18:13:28Z/"}],"url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-gmvf-9v4p-v8jc"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/375879?format=json","purl":"pkg:npm/fast-jwt@6.2.4","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/fast-jwt@6.2.4"}],"aliases":["CVE-2026-44351","GHSA-gmvf-9v4p-v8jc"],"risk_score":4.5,"exploitability":"0.5","weighted_severity":"9.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-33md-72rd-pydv"}],"fixing_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/71537?format=json","vulnerability_id":"VCID-ctxb-wxf9-zuh3","summary":"fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.2.1, using certain modifiers on RegExp objects in the allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce options in verify functions can cause certain unintended behaviours. This is because some modifiers are stateful and will cause failures in every second verification attempt regardless of the validity of the token provided. Such modifiers are /g (global matching) and /y (sticky matching). This does NOT allow invalid tokens to be accepted, only for valid tokens to be improperly rejected in some configurations. Instead it causes 50% of valid authentication requests to fail in an alternating pattern. This vulnerability is fixed in 6.2.1.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-35040","reference_id":"","reference_type":"","scores":[{"value":"0.00182","scoring_system":"epss","scoring_elements":"0.39773","published_at":"2026-06-11T12:55:00Z"},{"value":"0.00182","scoring_system":"epss","scoring_elements":"0.39956","published_at":"2026-06-14T12:55:00Z"},{"value":"0.00182","scoring_system":"epss","scoring_elements":"0.39944","published_at":"2026-06-12T12:55:00Z"},{"value":"0.00182","scoring_system":"epss","scoring_elements":"0.39967","published_at":"2026-06-13T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-35040"},{"reference_url":"https://github.com/nearform/fast-jwt","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/nearform/fast-jwt"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35040","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35040"},{"reference_url":"https://github.com/nearform/fast-jwt/commit/18d25904e4617e8753526d1b3ab5a2cccdea726a","reference_id":"18d25904e4617e8753526d1b3ab5a2cccdea726a","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-04-13T20:03:24Z/"}],"url":"https://github.com/nearform/fast-jwt/commit/18d25904e4617e8753526d1b3ab5a2cccdea726a"},{"reference_url":"https://github.com/nearform/fast-jwt/pull/593","reference_id":"593","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-04-13T20:03:24Z/"}],"url":"https://github.com/nearform/fast-jwt/pull/593"},{"reference_url":"https://github.com/advisories/GHSA-3j8v-cgw4-2g6q","reference_id":"GHSA-3j8v-cgw4-2g6q","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-3j8v-cgw4-2g6q"},{"reference_url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-3j8v-cgw4-2g6q","reference_id":"GHSA-3j8v-cgw4-2g6q","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-04-13T20:03:24Z/"}],"url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-3j8v-cgw4-2g6q"},{"reference_url":"https://github.com/nearform/fast-jwt/releases/tag/v6.2.1","reference_id":"v6.2.1","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-04-13T20:03:24Z/"}],"url":"https://github.com/nearform/fast-jwt/releases/tag/v6.2.1"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/373525?format=json","purl":"pkg:npm/fast-jwt@6.2.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-33md-72rd-pydv"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/fast-jwt@6.2.1"}],"aliases":["CVE-2026-35040","GHSA-3j8v-cgw4-2g6q"],"risk_score":3.1,"exploitability":"0.5","weighted_severity":"6.2","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-ctxb-wxf9-zuh3"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/71820?format=json","vulnerability_id":"VCID-faw8-ya75-z3gh","summary":"fast-jwt provides fast JSON Web Token (JWT) implementation. From 5.0.0 to 6.2.0, a denial-of-service condition exists in fast-jwt when the allowedAud verification option is configured using a regular expression. Because the aud claim is attacker-controlled and the library evaluates it against the supplied RegExp, a crafted JWT can trigger catastrophic backtracking in the JavaScript regex engine, resulting in significant CPU consumption during verification. This vulnerability is fixed in 6.2.1.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-35041","reference_id":"","reference_type":"","scores":[{"value":"0.00048","scoring_system":"epss","scoring_elements":"0.15313","published_at":"2026-06-11T12:55:00Z"},{"value":"0.00048","scoring_system":"epss","scoring_elements":"0.15421","published_at":"2026-06-14T12:55:00Z"},{"value":"0.00048","scoring_system":"epss","scoring_elements":"0.15446","published_at":"2026-06-12T12:55:00Z"},{"value":"0.00048","scoring_system":"epss","scoring_elements":"0.15454","published_at":"2026-06-13T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-35041"},{"reference_url":"https://github.com/nearform/fast-jwt","reference_id":"","reference_type":"","scores":[{"value":"4.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/nearform/fast-jwt"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35041","reference_id":"","reference_type":"","scores":[{"value":"4.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35041"},{"reference_url":"https://github.com/nearform/fast-jwt/pull/595","reference_id":"595","reference_type":"","scores":[{"value":"4.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-04-09T16:14:14Z/"}],"url":"https://github.com/nearform/fast-jwt/pull/595"},{"reference_url":"https://github.com/nearform/fast-jwt/commit/b0be0ca161593836a153d5180ca5358ad9b5de94","reference_id":"b0be0ca161593836a153d5180ca5358ad9b5de94","reference_type":"","scores":[{"value":"4.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-04-09T16:14:14Z/"}],"url":"https://github.com/nearform/fast-jwt/commit/b0be0ca161593836a153d5180ca5358ad9b5de94"},{"reference_url":"https://github.com/advisories/GHSA-cjw9-ghj4-fwxf","reference_id":"GHSA-cjw9-ghj4-fwxf","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-cjw9-ghj4-fwxf"},{"reference_url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-cjw9-ghj4-fwxf","reference_id":"GHSA-cjw9-ghj4-fwxf","reference_type":"","scores":[{"value":"4.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H"},{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-04-09T16:14:14Z/"}],"url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-cjw9-ghj4-fwxf"},{"reference_url":"https://github.com/nearform/fast-jwt/releases/tag/v6.2.1","reference_id":"v6.2.1","reference_type":"","scores":[{"value":"4.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-04-09T16:14:14Z/"}],"url":"https://github.com/nearform/fast-jwt/releases/tag/v6.2.1"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/373525?format=json","purl":"pkg:npm/fast-jwt@6.2.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-33md-72rd-pydv"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/fast-jwt@6.2.1"}],"aliases":["CVE-2026-35041","GHSA-cjw9-ghj4-fwxf"],"risk_score":3.1,"exploitability":"0.5","weighted_severity":"6.2","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-faw8-ya75-z3gh"}],"risk_score":"4.5","resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/fast-jwt@6.2.1"}