@asymmetric-effort/specifyjs: CSS expression sanitization is bypassable in renderToString
asymmetric-effort specifyjs
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @asymmetric-effort/specifyjs npm |
|
|
Original 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.
From the CVE record · GitHub_M