payloadcms / payloadcms/payload
Security: bson-objectid@2.0.4 has unpatched vulnerability (SNYK-JS-BSONOBJECTID-570765 / CVE-2019-19729)
Open
@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-objectidpackage 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.