KaTeX is a JavaScript library for TeX math rendering on the web. Code that uses KaTeX's `trust` option can be fooled by URLs in malicious inputs that use uppercase characters in the protocol, allowing for malicious input to generate `javascript:` links in the output. This issue arises because KaTeX did not normalize the `protocol` entry of the `context` object provided to a user-specified `trust` function, which could be a mix of lowercase and/or uppercase letters.