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 21, 2026)

The v3(), v5(), and v6() API methods (not uuid release versions) accept external output buffers but do not reject out-of-range writes (small buf or large offset). By contrast, v4(), v1(), and v7() API methods 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/commit/32389c887c9e75f90442ee4cc95bbab0c4e8346e
  • github.com/uuidjs/uuid/commit/3d2c5b0342f0fcb52a5ac681c3d47c13e7444b34
  • github.com/uuidjs/uuid/commit/3d61d6ac1f782cf6b1dd8661c60f11722cd49a0d
  • github.com/uuidjs/uuid/commit/9d27ddf7046ce496ef39569ff84d948eeff9cb2a
  • github.com/uuidjs/uuid/releases/tag/v11.1.1
  • github.com/uuidjs/uuid/releases/tag/v12.0.1
  • github.com/uuidjs/uuid/releases/tag/v13.0.1
  • 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 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 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-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 Tue, 23 Jun 2026 12:23:08 +0000.