Skip to content

Bandit B704: Potential XSS with markupsafe.Markup detected. #1858

@UlrichB22

Description

@UlrichB22

Bandit reports since version 1.8.3 (17.02.2025) the following warning:

https://bandit.readthedocs.io/en/latest/plugins/b704_markupsafe_markup_xss.html

For example in src/moin/apps/frontend/views.py:667

IMO we have validated all content before using markupsafe.Markup and can ignore B704 warnings.
Please advise.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions