5.3medium
@asymmetric-effort/specifyjs: CSS expression sanitization is bypassable in renderToString
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.49% (higher than 35% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-93q6-wwjh-jc6h
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| asymmetric-effort specifyjs | < 0.2.136 | CVE List |
| @asymmetric-effort/specifyjs (npm) | before 0.2.136 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Finding
Location: core/src/server/render-to-string.ts:307-311
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().
Mitigating Factor: These CSS injection vectors only work in legacy browsers (IE6-IE10). SpecifyJS targets modern browsers.
Status
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.
NVD (es)
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'.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-50290 changed 2026-08-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-93q6-wwjh-jc6h changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-50290 changed 2026-10-14 | Public domain |