Skip to main content
EPSS 0.4%top 71%

Style Dictionary - Prototype Pollution in convertTokenData utility function (CVE-2026-54639)

0
High
Published: 07/28/2026 (07/28/2026, 22:23:03 UTC)
Source: GCVE Database
Product: style-dictionary

Description

Style Dictionary versions from 4.3.0 up to but not including 5.4.4 contain a prototype pollution vulnerability in the convertTokenData utility function. This vulnerability allows a malicious user to inject tokens with keys like '{__proto__.foo}', which pollutes the global Object.prototype. The vulnerability affects direct usage of convertTokenData as well as indirect usage via the Expand API or the transform lifecycle. The impact is highest when Style Dictionary is integrated into NodeJS server applications, moderate for web applications, and low when token data is tightly controlled. A patch is available in version 5.4.4. Workarounds include sanitizing token data to reject keys containing '__proto__' and disabling the expand feature.

CVSS v3.1

Score 8.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected software

npmghsa
style-dictionary
Affected versions
>=4.3.0 <5.4.4

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: 07/29/2026, 12:38:35 UTC

Technical Analysis

The vulnerability in Style Dictionary arises from the convertTokenData utility function processing token arrays containing keys that manipulate the prototype chain, specifically keys like '{__proto__.foo}'. When such tokens are processed, they cause pollution of the global Object.prototype, effectively injecting properties globally. This can occur directly via convertTokenData(tokens, { output: 'object' }) or indirectly through the Expand API or the transform lifecycle, which synchronize token data back to objects. The vulnerability affects versions >=4.3.0 and <5.4.4. A patch fixing this issue was released in version 5.4.4. The vulnerability has been confirmed with a test and reproduction, and a pull request containing the fix is publicly available. Workarounds involve sanitizing token data to detect and reject keys containing '__proto__' and disabling the expand feature to prevent indirect exploitation.

Potential Impact

Prototype pollution allows an attacker to modify the global Object prototype, potentially leading to arbitrary code execution, data corruption, or denial of service. The impact is high for NodeJS server applications using Style Dictionary, where malicious tokens can affect server behavior. For web applications, the impact is moderate, and for typical use cases where token data is controlled and access is limited, the impact is low.

Mitigation Recommendations

A patch is available in Style Dictionary version 5.4.4. Users should upgrade to this version or later to remediate the vulnerability. As a workaround, sanitize token data before processing by recursively checking for keys containing '__proto__' and rejecting such tokens. Additionally, set the expand configuration option to false to prevent indirect exploitation via the Expand API. Example code for detection is provided in the advisory.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-vj5c-m527-mpff
Osv Schema Version
1.4.0
Aliases
["CVE-2026-54639"]
Ecosystems
["npm"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a69400b9c2644c7f8666399

Added to database: 07/28/2026, 23:49:31 UTC

Last enriched: 07/29/2026, 12:38:35 UTC

Last updated: 09/12/2026, 22:01:34 UTC

Views: 46

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