Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. json-web-token
  4. ›
  5. CVE-2023-48238

CVE-2023-48238: json-web-token library is vulnerable to a JWT algorithm confusion attack

November 17, 2023 (updated October 19, 2026)

The json-web-token library is vulnerable to a JWT algorithm confusion attack.

References

  • github.com/advisories/GHSA-4xw9-cx39-r355
  • github.com/joaquimserafim/json-web-token/blob/acf6a462471e1b14187eb77414e9161b8b7bff7e/index.js
  • github.com/joaquimserafim/json-web-token/commit/b6e56b1346f48432d29133c76b65222ad93956b7
  • github.com/joaquimserafim/json-web-token/security/advisories/GHSA-4xw9-cx39-r355
  • nvd.nist.gov/vuln/detail/CVE-2023-48238

Code Behaviors & Features

Detect and mitigate CVE-2023-48238 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.0.0

Fixed versions

  • 4.0.0

Solution

Upgrade to version 4.0.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-345: Insufficient Verification of Data Authenticity

Source file

npm/json-web-token/CVE-2023-48238.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:31 +0000.