Skip to main content
EPSS 0.7%top 50%

CVE-2024-21548: Prototype Pollution in bun

0
High
VulnerabilityCVE-2024-21548cvecve-2024-21548
Published: 12/18/2024 (12/18/2024, 06:06:03 UTC)
Source: CVE Database V5
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P

Affected software

bun
pkg:npm/bun
Affected versions
=0.0.12>0.0.12 <1.1.30

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 12:57:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses