Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. uuid
  4. ›
  5. CVE-2026-41907

CVE-2026-41907: uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided

April 22, 2026 (updated May 5, 2026)

v3, v5, and v6 accept external output buffers but do not reject out-of-range writes (small buf or large offset). By contrast, v4, v1, and v7 explicitly throw RangeError on invalid bounds.

This inconsistency allows silent partial writes into caller-provided buffers.

References

  • github.com/advisories/GHSA-w5hq-g745-h8pq
  • github.com/uuidjs/uuid
  • github.com/uuidjs/uuid/commit/3d2c5b0342f0fcb52a5ac681c3d47c13e7444b34
  • github.com/uuidjs/uuid/releases/tag/v14.0.0
  • github.com/uuidjs/uuid/security/advisories/GHSA-w5hq-g745-h8pq
  • nvd.nist.gov/vuln/detail/CVE-2026-41907

Code Behaviors & Features

Detect and mitigate CVE-2026-41907 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 11.0.0 before 11.1.1, all versions starting from 12.0.0 before 12.0.1, all versions starting from 13.0.0 before 13.0.1

Fixed versions

  • 11.1.1
  • 12.0.1
  • 13.0.1

Solution

Upgrade to versions 11.1.1, 12.0.1, 13.0.1 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input
  • CWE-787: Out-of-bounds Write

Source file

npm/uuid/CVE-2026-41907.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:33 +0000.