{"id":"CVE-2026-54639","aliases":["CVE-2026-54639","GHSA-vj5c-m527-mpff"],"related":[],"kind":"vulnerability","state":"published","title":"Style Dictionary - Prototype Pollution in convertTokenData utility function","summary":"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__`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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__`.","source":"cvelist"},{"lang":"en","text":"### 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```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Style Dictionary, un sistema de compilación para crear estilos multiplataforma, tiene una vulnerabilidad de contaminación de prototipos a partir de la versión 4.3.0 y anterior a la versión 5.4.4. El impacto para los usuarios es: uso directo de “convertTokenData(tokens, { output: ’object’ });”; uso indirecto, a través del uso de la API de Expand; y/o uso indirecto a través del ciclo de vida de transformación de SD. El impacto es alto para esto cuando style-dictionary se utiliza como una integración en una aplicación de servidor NodeJS. El impacto es moderado para cuando style-dictionary se utiliza como una integración en una aplicación web. El impacto es bajo para la mayoría de los casos comunes donde el usuario de style-dictionary también mantiene los tokens, y el acceso está limitado a través del acceso de lectura/escritura al repositorio/flujos de trabajo donde se utiliza. Se ha publicado un parche en la versión “5.4.4”. La única solución alternativa conocida es sanear los datos del token primero. Ya sea utilizando el formato DTCG o el formato antiguo de Style Dictionary, verifique el objeto de datos del token recursivamente para cualquier clave de objeto que incluya “__proto__”.","source":"nvd"}],"published":"2026-06-24T00:17:44.889Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":">= 4.3.0, < 5.4.4","status":"affected"}],"vendor":"style-dictionary","product":"style-dictionary","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.3.0","status":"affected","fixed":"5.4.4"}],"ecosystem":"npm","package":"style-dictionary","purl":"pkg:npm/style-dictionary","source":"ghsa"}],"references":[{"url":"https://github.com/style-dictionary/style-dictionary/security/advisories/GHSA-vj5c-m527-mpff","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/style-dictionary/style-dictionary/pull/1702","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/style-dictionary/style-dictionary/commit/209085d9782cfc0783c4d983f3f1bb2c515954ec","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/style-dictionary/style-dictionary/commit/23b5e8dda143441f0d6b8e2b4222e2da98058bc5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54639","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/style-dictionary/style-dictionary","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/style-dictionary/style-dictionary/releases/tag/v5.4.4","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-24T13:00:58.855Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54639","url":"https://www.cve.org/CVERecord?id=CVE-2026-54639","licence":"CVE Terms of Use","modified":"2026-06-24T13:02:09.090Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vj5c-m527-mpff","url":"https://github.com/advisories/GHSA-vj5c-m527-mpff","licence":"CC-BY-4.0","modified":"2026-07-28T22:30:30.999Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54639","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54639","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.559Z","epss":{"score":0.00171,"percentile":0.06765,"date":"2026-12-01T12:00:22.000Z"}}