Skip to main content

Style Dictionary EUVDEUVD-2026-38640

| CVE-2026-54639 HIGH
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-06-24 GitHub_M GHSA-vj5c-m527-mpff
8.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply token array with `{__proto__.key}` entry
  2. Delivery
    Token data reaches `convertTokenData()` unvalidated
  3. Exploit
    Path-split assignment mutates `Object.prototype`
  4. Execution
    Global prototype polluted in Node.js runtime
  5. Persist
    Downstream property checks return attacker-controlled values
  6. Impact
    Authentication bypass or arbitrary code execution via gadget chain

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that attacker-controlled data reaches one of three code paths: (1) direct invocation of convertTokenData(tokens, { output: 'object' }) with attacker-supplied token arrays; (2) use of Style Dictionary's Expand API with expand not set to false - any truthy expand config triggers a sd.tokens/sd.tokenMap sync through convertTokenData; or (3) the SD transform lifecycle, which also calls the sync. The attack vector is effectively determined by how token data is sourced: in a build-time-only pipeline where the developer controls all token files, exploitation requires repository write access (low real-world risk); in a Node.js server where end-users upload or POST token data, exploitation may require only user-level authentication or none at all (high real-world risk). Style Dictionary deployments in CI/CD pipelines using only trusted token repositories are not meaningfully at risk from external attackers.

Impact

The provided CVSS vector (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H = 8.8) models the build-tool scenario where local write access to token files is prerequisite. However, SSVC Technical Impact is rated 'total', reflecting that prototype pollution can fully compromise a Node.js runtime - enabling property injection into every object, bypassing authentication checks, or enabling remote code execution via gadget chains in server frameworks like Express. EPSS is extremely low at 0.13% (3rd percentile), and SSVC exploitation is 'none', meaning no known in-the-wild use despite a public POC. The risk profile is bimodal: negligible for build-only pipelines with controlled token repositories; elevated for server applications where end-users can submit arbitrary token data that flows through convertTokenData without prior sanitization. A potential metric tension exists - the provided AV:L understates server-side exposure while S:C/C:H/I:H/A:H overstates the impact for the dominant build-tool use case. Defenders should triage by whether untrusted token data can reach the affected code paths.

Exploit ScenarioDerived

A threat actor targeting a Node.js design-token service that accepts user-submitted token files crafts an input containing [{ key: '{__proto__.isAdmin}', value: 'true' }]. When the service calls convertTokenData() during processing, Object.prototype.isAdmin is set to 'true' globally, causing every subsequent obj.isAdmin check in the runtime to return truthy - bypassing access controls without valid credentials. A public POC demonstrating this mechanism exists at https://gist.github.com/alon710/f56e7fea90184a0067b486a540ca3738.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 16, 2026

Prototype pollution in Style Dictionary's convertTokenData() utility function allows an attacker who can supply token data with a __proto__-keyed entry to corrupt Object.prototype globally, affecting all downstream object operations in the same runtime. All deployments using versions 4.3.0 through 5.4.3 on npm are affected, with severity scaling sharply by context: Node.js server applications ingesting untrusted token data face high-impact exploitation, while build-time-only pipelines with controlled token sources face low residual risk. A publicly available proof-of-concept exists (GitHub Gist), though SSVC signals exploitation activity as none at time of analysis.

RemediationAI

Upgrade to Style Dictionary v5.4.4, which patches lib/utils/convertTokenData.js to skip any token key containing __proto__ before the path-splitting assignment. The fix PR and commit are at https://github.com/style-dictionary/style-dictionary/pull/1702 and commit 23b5e8d. If upgrading is not immediately possible, the only confirmed workaround is to recursively scan all token data objects for any key containing __proto__ and reject or strip them before passing to the library. For users of the Expand API, additionally set expand: false in the StyleDictionary configuration to block the second exploitation path, noting this disables token expansion functionality. For Node.js server deployments ingesting untrusted token data, consider schema validation at the API boundary that rejects keys matching /(__proto__|constructor|prototype)/ before any processing.

Affected VersionsENISA

style-dictionary 4.3.0, < 5.4.4

Affected Packages

npm style-dictionary fix: 5.4.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Style Dictionary (CPE: cpe:2.3:a:style-dictionary:style-dictionary) is a Node.js build system for cross-platform design tokens distributed via npm. The vulnerability resides in lib/utils/convertTokenData.js, specifically in the path-splitting logic (lines L40-L50) that converts a token array entry's key string into a nested object path via property assignment. When a token key such as {__proto__.a} is processed, the function dissects it into obj['__proto__']['a'] = value, mutating Object.prototype globally rather than setting a property on a normal object. This is a textbook CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes) instance introduced in v4.3.0. The pollution is triggered through three surfaces: direct calls to convertTokenData(tokens, { output: 'object' }), the Expand API (when expand is not explicitly disabled), and the transform lifecycle sync of sd.tokens with sd.tokenMap.

Know when Style Dictionary gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 8.5 HIGH

AV:N reflects highest-risk server deployments accepting untrusted token data; AC:H because exploitation depends on that specific deployment pattern; PR:L for typical authenticated token-submission workflows.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Jun 24, 2026 - 02:00 EUVD
CVE Published
Jun 24, 2026 - 00:17 cve.org
HIGH 8.8

DescriptionCVE.org

Style Dictionary, a build system for creating cross-platform styles, has a prototype pollution vulnerability starting in version 4.3.0 and prior to version 5.4.4. Impact users have: direct usage of convertTokenData(tokens, { output: 'object' });; indirect usage, via using Expand API; and/or indirect usage via SD's transform lifecycle. Impact is high for this when style-dictionary is used as an integration in a NodeJS server application. Impact is moderate for when style-dictionary is used as an integration in a Web application. Impact is low for most common cases where the user of style-dictionary also maintains the tokens, and access is limited via read/write access to the repository/workflows where it is used. A patch has been published in version 5.4.4. The only known workaround is to sanitize token data first. Whether using DTCG format or old Style Dictionary format, check the token data object recursively for any object keys that include __proto__.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on style-dictionary (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 4.3.0.

Executive ViewAI

Why It Matters

Style Dictionary versions 4.3.0-5.4.3 are vulnerable to prototype pollution attacks through malicious token data, potentially compromising application availability and integrity in Node.js server deployments. Organizations using this design token library for runtime token ingestion face immediate risk of service disruption. Build-time-only pipelines with controlled token sources have significantly lower risk exposure.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
popular design-token build tool in frontend/design-system teams
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy