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

ruby.rails.security.audit.xss.templates.unquoted-attribute.unquoted-attribute false positives #3539

Open
1 of 3 tasks
segiddins opened this issue Dec 13, 2024 · 0 comments
Open
1 of 3 tasks
Labels
bug Something isn't working

Comments

@segiddins
Copy link

Describe the bug
False positives for patterns that are wrapped in parentheses
To Reproduce

    <!-- ok: unquoted-attribute -->
    <div style="max-width: <%= width || "100%" %>;"> </div>

    <!-- ok: unquoted-attribute -->
    <div href="foo/<%= "%>" %>"> </div>

Expected behavior

No warnings

Priority
How important is this to you?

  • P0: blocking me from making progress
  • P1: this will block me in the near future
  • P2: annoying but not blocking me

Additional Context
Add any other context about the problem here.

@segiddins segiddins added the bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant