Vulnerability library
Security checkMay 21, 2026

uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmuuid

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the uuid package to the latest compatible version. Followings are version details:

  • Affected version(s): **< 11.1.1 >= 13.0.0, < 13.0.1 >= 12.0.0, < 12.0.1**
  • Patched version(s): **11.1.1 13.0.1 12.0.1**

References

Could your website be exposed too?

SmartScanner can check your website for uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 21, 2026