Lookup for vulnerable packages by Package URL.

Purlpkg:npm/json-web-token@3.1.1
Typenpm
Namespace
Namejson-web-token
Version3.1.1
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_versionnull
Latest_non_vulnerable_versionnull
Affected_by_vulnerabilities
0
url VCID-1k9q-pjyf-8ue6
vulnerability_id VCID-1k9q-pjyf-8ue6
summary joaquimserafim/json-web-token is a javascript library use to interact with JSON Web Tokens (JWT) which are a compact URL-safe means of representing claims to be transferred between two parties. Affected versions of the json-web-token library is vulnerable to a JWT algorithm confusion attack. On line 86 of the 'index.js' file, the algorithm to use for verifying the signature of the JWT token is taken from the JWT token, which at that point is still unverified and thus shouldn't be trusted. To exploit this vulnerability, an attacker needs to craft a malicious JWT token containing the HS256 algorithm, signed with the public RSA key of the victim application. This attack will only work against this library is the RS256 algorithm is in use, however it is a best practice to use that algorithm.
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2023-48238
reference_id
reference_type
scores
0
value 0.00186
scoring_system epss
scoring_elements 0.40167
published_at 2026-05-30T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2023-48238
1
reference_url https://github.com/joaquimserafim/json-web-token
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/joaquimserafim/json-web-token
2
reference_url https://github.com/joaquimserafim/json-web-token/blob/acf6a462471e1b14187eb77414e9161b8b7bff7e/index.js#L86
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/joaquimserafim/json-web-token/blob/acf6a462471e1b14187eb77414e9161b8b7bff7e/index.js#L86
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-48238
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2023-48238
4
reference_url https://github.com/advisories/GHSA-4xw9-cx39-r355
reference_id GHSA-4xw9-cx39-r355
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-4xw9-cx39-r355
5
reference_url https://github.com/joaquimserafim/json-web-token/security/advisories/GHSA-4xw9-cx39-r355
reference_id GHSA-4xw9-cx39-r355
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2024-10-11T15:24:35Z/
url https://github.com/joaquimserafim/json-web-token/security/advisories/GHSA-4xw9-cx39-r355
fixed_packages
aliases CVE-2023-48238, GHSA-4xw9-cx39-r355
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-1k9q-pjyf-8ue6
Fixing_vulnerabilities
0
url VCID-1k9q-pjyf-8ue6
vulnerability_id VCID-1k9q-pjyf-8ue6
summary joaquimserafim/json-web-token is a javascript library use to interact with JSON Web Tokens (JWT) which are a compact URL-safe means of representing claims to be transferred between two parties. Affected versions of the json-web-token library is vulnerable to a JWT algorithm confusion attack. On line 86 of the 'index.js' file, the algorithm to use for verifying the signature of the JWT token is taken from the JWT token, which at that point is still unverified and thus shouldn't be trusted. To exploit this vulnerability, an attacker needs to craft a malicious JWT token containing the HS256 algorithm, signed with the public RSA key of the victim application. This attack will only work against this library is the RS256 algorithm is in use, however it is a best practice to use that algorithm.
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2023-48238
reference_id
reference_type
scores
0
value 0.00186
scoring_system epss
scoring_elements 0.40167
published_at 2026-05-30T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2023-48238
1
reference_url https://github.com/joaquimserafim/json-web-token
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/joaquimserafim/json-web-token
2
reference_url https://github.com/joaquimserafim/json-web-token/blob/acf6a462471e1b14187eb77414e9161b8b7bff7e/index.js#L86
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/joaquimserafim/json-web-token/blob/acf6a462471e1b14187eb77414e9161b8b7bff7e/index.js#L86
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-48238
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2023-48238
4
reference_url https://github.com/advisories/GHSA-4xw9-cx39-r355
reference_id GHSA-4xw9-cx39-r355
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-4xw9-cx39-r355
5
reference_url https://github.com/joaquimserafim/json-web-token/security/advisories/GHSA-4xw9-cx39-r355
reference_id GHSA-4xw9-cx39-r355
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2024-10-11T15:24:35Z/
url https://github.com/joaquimserafim/json-web-token/security/advisories/GHSA-4xw9-cx39-r355
fixed_packages
0
url pkg:npm/json-web-token@3.1.1
purl pkg:npm/json-web-token@3.1.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-1k9q-pjyf-8ue6
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/json-web-token@3.1.1
aliases CVE-2023-48238, GHSA-4xw9-cx39-r355
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-1k9q-pjyf-8ue6
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/json-web-token@3.1.1