Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 538 Bytes

B704.md

File metadata and controls

13 lines (7 loc) · 538 Bytes

Pattern: Potential XSS on markupsafe.Markup

Issue: -

Description

markupsafe.Markup does not perform any escaping, so passing dynamic content, like f-strings, variables or interpolated strings will potentially lead to XSS vulnerabilities, especially if that data was submitted by users.

Instead you should interpolate the resulting markupsafe.Markup object, which will perform escaping, or use markupsafe.escape.

Further Reading