CVE-2024-21548: Prototype Pollution in bun
Versions of the package bun after 0.0.12 and before 1.1.30 are vulnerable to Prototype Pollution due to improper input sanitization. An attacker can exploit this vulnerability through Bun's APIs that accept objects. **Note:** This issue relates to the widely known and actively developed 'Bun' JavaScript runtime. The bun package on NPM at versions 0.0.12 and below belongs to a different and older project that happened to claim the 'bun' name in the past.
AI Analysis
Technical Summary
CVE-2024-21548 describes a Prototype Pollution vulnerability in the bun JavaScript runtime affecting versions after 0.0.12 and before 1.1.30. The issue is due to improper input sanitization in Bun's APIs that accept objects, which can be exploited by an attacker with low privileges to perform prototype pollution attacks. This can lead to high impact on confidentiality, integrity, and availability. The vulnerability is tracked under CWE-1321. There is no vendor advisory or patch information currently available.
Potential Impact
An attacker with low privileges can exploit this vulnerability to perform prototype pollution, potentially leading to arbitrary code execution or manipulation of application logic. The CVSS score of 7.7 indicates a high severity impact affecting confidentiality, integrity, and availability. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when using affected versions of bun and consider restricting access to Bun's APIs that accept objects.
CVE-2024-21548: Prototype Pollution in bun
Description
Versions of the package bun after 0.0.12 and before 1.1.30 are vulnerable to Prototype Pollution due to improper input sanitization. An attacker can exploit this vulnerability through Bun's APIs that accept objects. **Note:** This issue relates to the widely known and actively developed 'Bun' JavaScript runtime. The bun package on NPM at versions 0.0.12 and below belongs to a different and older project that happened to claim the 'bun' name in the past.
CVSS v4.0
Score 7.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-21548 describes a Prototype Pollution vulnerability in the bun JavaScript runtime affecting versions after 0.0.12 and before 1.1.30. The issue is due to improper input sanitization in Bun's APIs that accept objects, which can be exploited by an attacker with low privileges to perform prototype pollution attacks. This can lead to high impact on confidentiality, integrity, and availability. The vulnerability is tracked under CWE-1321. There is no vendor advisory or patch information currently available.
Potential Impact
An attacker with low privileges can exploit this vulnerability to perform prototype pollution, potentially leading to arbitrary code execution or manipulation of application logic. The CVSS score of 7.7 indicates a high severity impact affecting confidentiality, integrity, and availability. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when using affected versions of bun and consider restricting access to Bun's APIs that accept objects.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- snyk
- Date Reserved
- 2023-12-22T12:33:20.128Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a7b1b30bf8831d539bca9f7
Added to database: 08/11/2026, 12:53:04 UTC
Last enriched: 08/11/2026, 12:57:04 UTC
Last updated: 09/25/2026, 13:47:36 UTC
Views: 54
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.