CVE-2024-21548: Versions of the package bun after 0.0.12 and before 1.1.30 are vulnerable to Prototype Pollution due to imp...
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.
Security readout for executives and security teams
Plain-English summary
Affected Bun runtime versions may let a user with limited access corrupt shared JavaScript object behavior by supplying a malicious object. This could compromise confidentiality, integrity, or availability in applications that pass attacker-controlled objects into vulnerable Bun APIs.
Executive priority
Treat as a high-priority upgrade for exposed Bun services. Accelerate remediation where attacker-controlled objects reach Bun APIs; otherwise schedule prompt patching after confirming actual runtime versions and input paths.
Technical view
CVE-2024-21548 is a CWE-1321 prototype-pollution flaw caused by improper object sanitization. The stated affected range is later than 0.0.12 and earlier than 1.1.30. Exploitation requires a vulnerable Bun API path accepting attacker-influenced objects; the CVSS 4.0 score is 7.7.
Likely exposure
Exposure is most likely where Bun versions 0.0.13 through 1.1.29 process attacker-controlled objects through affected APIs. The unrelated historical npm package named bun at version 0.0.12 or earlier is explicitly excluded.
Exploitation context
The CVSS vector records network reachability, low complexity, low privileges, no user interaction, and proof-of-concept maturity. CISA KEV status is false in the bundle, and no supplied evidence establishes active exploitation.
Researcher notes
The bundle contains inconsistent version metadata: its narrative identifies versions after 0.0.12 and before 1.1.30, while the structured affected entry lists 0.0.12. The narrative also explicitly excludes 0.0.12 and earlier as another project. Validate findings against the CVE record and linked Bun change.
Mitigation direction
Upgrade the Bun runtime to version 1.1.30 or later.
Prioritize internet-facing services that pass untrusted objects into Bun APIs.
Restrict untrusted object input until upgrading is complete.
Review Bun's linked patch and vendor guidance before deployment.
Validation and detection
Inventory runtime versions using deployment manifests, lockfiles, containers, and production telemetry.
Confirm no deployed Bun runtime falls between 0.0.13 and 1.1.29.
Trace attacker-controlled objects reaching Bun APIs and prioritize those paths.
Run existing regression and security tests after upgrading.
Verify production artifacts contain the intended fixed runtime version.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-1321: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
1ADP providers
4Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.