payloadcms / payloadcms/payload

Security: bson-objectid@2.0.4 has unpatched vulnerability (SNYK-JS-BSONOBJECTID-570765 / CVE-2019-19729)

Open
#16,458 0 comments 0 reactions 1 assignee View on GitHub

@r1tsuu is already working on this.

Since May 4, 2026.

Dominant language
TypeScript
Stars
44.8k
Forks
4.2k
Avg merge
2d 21h
Merged PRs (30d)
53

Description

Summary

bson-objectid@2.0.4 is a transitive dependency of payload, @payloadcms/next, and @payloadcms/richtext-lexical. It has an unpatched prototype pollution vulnerability with no fix available from the upstream maintainer.

Vulnerability details

  • Snyk ID: SNYK-JS-BSONOBJECTID-570765
  • CVE: CVE-2019-19729
  • Package: bson-objectid@2.0.4
  • Type: Prototype Pollution
  • Fix available: No — the bson-objectid package appears unmaintained and has not released a patched version

Dependency path

payload@3.84.1 → bson-objectid@2.0.4
@payloadcms/next@3.84.1 → @payloadcms/ui@3.84.1 → bson-objectid@2.0.4
@payloadcms/richtext-lexical@3.84.1 → bson-objectid@2.0.4

Request

Since no patched version of bson-objectid exists, could Payload consider replacing it with the actively maintained bson package (from MongoDB) or another alternative for ObjectID generation? This would resolve the security finding for all downstream users.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.