You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Security: escape HTML-breakout sequences in injected JSON-LD
The MkDocs hook embedded schema.org Dataset JSON-LD into page HTML via
json.dumps, which does not escape < > &. A concept whose title/description/
tags contained a literal </script> could close the JSON-LD block and inject
executable markup — stored XSS on any site built from a bundle with
third-party-contributed concepts (the tutorial ships this hook as a template
to copy). Escape < > & to their \uXXXX JSON forms (still valid JSON-LD).
Regression test in tests/test_hooks.py.
0 commit comments