Bug: CSS injection through font-family in unicode command. #3129
Labels
Accepted
Issue has been reproduced by MathJax team
Code Example
Contains an illustrative code example, solution, or work-around
Merged
Merged into develop branch
Test Needed
v3
Issue Summary
A user is able to inject custom CSS even if commands like
\style
is disabled. The style gets rendered into thestyle
attribute of the element containing the unicode character.This occurs because the font-family is not correctly sanatized and only
'
characters are escaped. Whatever is passed as the fontFamily gets shoved into the style attribute.Steps to Reproduce
\unicode
command.\unicode[some-font; color:red; height: 100000px;]{x1234}
.Technical details
The text was updated successfully, but these errors were encountered: