CVE-2026-54639: Style dictionary Style Dictionary - Prototype Pollution Vulnerability

HIGH
Advisory Identifier: GHSA-vj5c-m527-mpff
CVSS 8.8
CWE-1321
Published
Advisory Summary

CVE-2026-54639 is a HIGH (CVSS 8.8) style dictionary - prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Style dictionary libraries in the npm ecosystem. The issue involves style dictionary - prototype pollution in converttokendata utility function. Remediation is available by upgrading affected packages to version 5.4.4.

CVE-2026-54639 at a Glance

CVE Identifier CVE-2026-54639
GHSA Identifier GHSA-vj5c-m527-mpff
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Style dictionary
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).

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

How to Fix CVE-2026-54639

To remediate this vulnerability, upgrade all affected Style dictionary dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

style-dictionary fixed: 5.4.4
npm install style-dictionary@5.4.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls style-dictionary

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-54639, inspect your project dependencies using npm:

npm ls style-dictionary

Analyze the terminal output to locate any version of Style dictionary in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.4), your application is affected.

Note: The npm ls style-dictionary command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Style dictionary, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Prototype pollution. A malicious user can create a token array `[{ key: '{__proto__.foo}', value: 'malicious' }]`, when processed by `convertTokenData()` utility function, it will pollute the Object.prototype globally where `{}.foo` will equal `{ key: '{__proto__.foo}', value: 'malicious' }`. This has been confirmed with a test/reproduction. You are impacted when: - direct usage of `convertTokenData(tokens, { output: 'object' });` - indirect usage, via using Expand API https://styledictionary.com/reference/config/#expand. If your expand config deems it necessary to run expand (this means, if NOT: 1) set to false, 2) all subprops set to false, or 3) undefined), then we sync the `sd.tokens` property with the `sd.tokenMap` property by converting tokenData map back to object. - indirect usage via SD's transform lifecycle. Once your tokens are transformed, we also have to sync the `sd.tokens` property with the `sd.tokenMap` property. 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. ### Patches A patch has been published: version `5.4.4`. Any version within range `>=4.3.0 <5.4.4` contains this vulnerability, see commit hash 209085d for when the vulnerability was added. See PR with repro + fix https://github.com/style-dictionary/style-dictionary/pull/1702 ### Workarounds A workaround is to sanitize your token data first. Whether using DTCG format or old Style Dictionary format, you have to check the token data object recursively for any object keys that include `__proto__`. You can do this with the StyleDictionary instance too, just ensure that expand has to be set to false to prevent the second method of this vulnerability from happening. ```js const sd = new StyleDictionary({ expand: false }); if (sd.allTokens.some(tok => tok.key.includes('__proto__')) { throw new Error('Found malicious token key, attempting to do prototype pollution.') } ```

CVE-2026-54639 Affected Style dictionary Versions

1 component(s)
Fixed Versions:
5.4.4
Product / Package Ecosystem Affected Versions Fixed Version
style-dictionary
npm
≥ 4.3.0
< 5.4.4
5.4.4

References

Frequently Asked Questions

What is CVE-2026-54639?
CVE-2026-54639 is a security vulnerability in Style dictionary involving Style Dictionary - Prototype Pollution in convertTokenData utility function under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Style dictionary versions are affected?
Affected versions include releases prior to 5.4.4 across affected packages: style-dictionary.
What version fixes CVE-2026-54639?
Upgrading to 5.4.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is style-dictionary affected?
Yes, style-dictionary is affected in releases prior to 5.4.4. Upgrade your dependency to 5.4.4 or later.
What is the CVSS score of CVE-2026-54639?
CVE-2026-54639 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-54639?
CVE-2026-54639 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2026-54639?
Run the dependency tree command: 'npm ls style-dictionary'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vj5c-m527-mpff",
  "modified" : "2026-07-28T22:23:03Z",
  "published" : "2026-07-28T22:23:03Z",
  "aliases" : [ "CVE-2026-54639" ],
  "summary" : "Style Dictionary - Prototype Pollution in convertTokenData utility function",
  "details" : "### Impact\nPrototype pollution.\nA malicious user can create a token array `[{ key: '{__proto__.foo}', value: 'malicious' }]`, when processed by `convertTokenData()` utility function, it will pollute the Object.prototype globally where `{}.foo` will equal `{ key: '{__proto__.foo}', value: 'malicious' }`.\n\nThis has been confirmed with a test/reproduction.\n\nYou are impacted when:\n- direct usage of `convertTokenData(tokens, { output: 'object' });`\n- indirect usage, via using Expand API https://styledictionary.com/reference/config/#expand. If your expand config deems it necessary to run expand (this means, if NOT:  1) set to false, 2) all subprops set to false, or 3) undefined), then we sync the `sd.tokens` property with the `sd.tokenMap` property by converting tokenData map back to object.\n- indirect usage via SD's transform lifecycle. Once your tokens are transformed, we also have to sync the `sd.tokens` property with the `sd.tokenMap` property.\n\nImpact is high for this when style-dictionary is used as an integration in a NodeJS server application.\nImpact is moderate for when style-dictionary is used as an integration in a Web application.\nImpact 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.\n\n### Patches\nA patch has been published: version `5.4.4`.\nAny version within range `>=4.3.0 <5.4.4` contains this vulnerability, see commit hash 209085d for when the vulnerability was added.\n\nSee PR with repro + fix https://github.com/style-dictionary/style-dictionary/pull/1702\n\n### Workarounds\nA workaround is to sanitize your token data first. Whether using DTCG format or old Style Dictionary format, you have to check the token data object recursively for any object keys that include `__proto__`.\n\nYou can do this with the StyleDictionary instance too, just ensure that expand has to be set to false to prevent the second method of this vulnerability from happening.\n\n```js\nconst sd = new StyleDictionary({ expand: false });\n\nif (sd.allTokens.some(tok => tok.key.includes('__proto__')) {\n  throw new Error('Found malicious token key, attempting to do prototype pollution.')\n}\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "style-dictionary"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "5.4.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/style-dictionary/style-dictionary/security/advisories/GHSA-vj5c-m527-mpff"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-54639"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/style-dictionary/style-dictionary/pull/1702"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/style-dictionary/style-dictionary/commit/209085d9782cfc0783c4d983f3f1bb2c515954ec"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/style-dictionary/style-dictionary/commit/23b5e8dda143441f0d6b8e2b4222e2da98058bc5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/style-dictionary/style-dictionary"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/style-dictionary/style-dictionary/releases/tag/v5.4.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-28T22:23:03Z",
    "nvd_published_at" : "2026-06-24T01:16:25Z"
  }
}