{"id":"CVE-2026-50290","aliases":["CVE-2026-50290","GHSA-93q6-wwjh-jc6h"],"related":[],"kind":"vulnerability","state":"published","title":"@asymmetric-effort/specifyjs: CSS expression sanitization is bypassable in renderToString","summary":"SpecifyJS is a declarative TypeScript user interface framework. Prior to version 0.2.136, CSS value sanitization stripped `expression(` and `url(javascript:` using simple regex, but could be bypassed with CSS unicode escapes (`\\65xpression(`), null bytes, or CSS comments (`exp/**/ression(`). These CSS injection vectors only work in legacy browsers (IE6-IE10). SpecifyJS targets modern browsers. Starting in version 0.2.136, CSS sanitization now normalizes unicode escapes and strips CSS comments before pattern matching. Also checks for `behavior:`, `-moz-binding`, and `-o-link` patterns.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SpecifyJS is a declarative TypeScript user interface framework. Prior to version 0.2.136, CSS value sanitization stripped `expression(` and `url(javascript:` using simple regex, but could be bypassed with CSS unicode escapes (`\\65xpression(`), null bytes, or CSS comments (`exp/**/ression(`). These CSS injection vectors only work in legacy browsers (IE6-IE10). SpecifyJS targets modern browsers. Starting in version 0.2.136, CSS sanitization now normalizes unicode escapes and strips CSS comments before pattern matching. Also checks for `behavior:`, `-moz-binding`, and `-o-link` patterns.","source":"cvelist"},{"lang":"en","text":"## Finding\n\n**Location**: `core/src/server/render-to-string.ts:307-311`\n\nCSS value sanitization stripped `expression(` and `url(javascript:` using simple regex, but could be bypassed with CSS unicode escapes (`\\65xpression(`), null bytes, or CSS comments (`exp/**/ression(`).\n\n**Mitigating Factor**: These CSS injection vectors only work in legacy browsers (IE6-IE10). SpecifyJS targets modern browsers.\n\n## Status\n\n**Fixed in v0.2.136** — CSS sanitization now normalizes unicode escapes and strips CSS comments before pattern matching. Also checks for `behavior:`, `-moz-binding`, and `-o-link` patterns.","format":"markdown","source":"ghsa"},{"lang":"es","text":"SpecifyJS es un framework de interfaz de usuario declarativo de TypeScript. Antes de la versión 0.2.136, la sanitización de valores CSS eliminaba 'expression(' y 'url(javascript:' usando expresiones regulares simples, pero podía ser evadida con escapes Unicode de CSS ('\\65xpression('), bytes nulos o comentarios CSS ('exp/**/ression('). Estos vectores de inyección CSS solo funcionan en navegadores heredados (IE6-IE10). SpecifyJS se dirige a navegadores modernos. A partir de la versión 0.2.136, la sanitización CSS ahora normaliza los escapes Unicode y elimina los comentarios CSS antes de la coincidencia de patrones. También verifica patrones como 'behavior:', '-moz-binding' y '-o-link'.","source":"nvd"}],"published":"2026-07-02T19:08:45.000Z","modified":"2026-10-14T19:10:00.297Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 0.2.136","status":"affected"}],"vendor":"asymmetric-effort","product":"specifyjs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.136"}],"ecosystem":"npm","package":"@asymmetric-effort/specifyjs","purl":"pkg:npm/%40asymmetric-effort/specifyjs","source":"ghsa"}],"references":[{"url":"https://github.com/asymmetric-effort/specifyjs/security/advisories/GHSA-93q6-wwjh-jc6h","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/asymmetric-effort/specifyjs/commit/25d1fb491d99479efdf501f5f75e0bb80c908f0a","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/asymmetric-effort/specifyjs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-21T20:07:03.359Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-50290","url":"https://www.cve.org/CVERecord?id=CVE-2026-50290","licence":"CVE Terms of Use","modified":"2026-08-21T20:07:10.712Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-93q6-wwjh-jc6h","url":"https://github.com/advisories/GHSA-93q6-wwjh-jc6h","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:11.288Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-50290","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50290","licence":"Public domain","modified":"2026-10-14T19:10:00.297Z"}],"updatedAt":"2026-11-25T22:59:34.819Z","epss":{"score":0.00489,"percentile":0.34939,"date":"2026-11-29T12:00:22.000Z"}}