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

Ignore dangerous HTML tags in code blocks #3175

Open
nbusseneau opened this issue Jan 24, 2021 · 1 comment
Open

Ignore dangerous HTML tags in code blocks #3175

nbusseneau opened this issue Jan 24, 2021 · 1 comment

Comments

@nbusseneau
Copy link
Contributor

Hello,

Noticed I had this warning in Tools > Reports:

Security Scan complete: 1 potential XSS issues found...

This is a false-positive triggered by <meta> tags being included in code blocks on a page, as it's one of the tags in default "Dangerous HTML tags list" configuration.

I was thinking maybe these should be ignored when they are inside code blocks, as they are not interpreted anyway. What do you think?

@rhukster
Copy link
Member

Would be a great improvement, but does make the REGEX a bit more complicated.

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

No branches or pull requests

2 participants