Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. uuid
  4. ›
  5. GHSA-w5hq-g745-h8pq

GHSA-w5hq-g745-h8pq: uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided

April 22, 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

Code Behaviors & Features

Detect and mitigate GHSA-w5hq-g745-h8pq 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 14.0.0

Fixed versions

  • 14.0.0

Solution

Upgrade to version 14.0.0 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/GHSA-w5hq-g745-h8pq.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:19:53 +0000.