Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate url to prevent XSS attacks #227

Open
AnnMarieW opened this issue Jan 24, 2024 · 0 comments
Open

Validate url to prevent XSS attacks #227

AnnMarieW opened this issue Jan 24, 2024 · 0 comments

Comments

@AnnMarieW
Copy link
Sponsor

This was reported in the Dash repo a few days ago, and the same vulnerability is in dmc as well.

For more info, please see: plotly/dash#2729


from dash import Dash, html
import dash_mantine_components as dmc

app=Dash(__name__)

app.layout = html.Div(
    dmc.NavLink(label="dmc link", href='javascript:alert(1)')
)

if __name__ == '__main__':
    app.run_server(debug=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant