Skip to content

feat(html): detect HTML documents without a Content-Security-Policy meta tag (CWE-693) - #133

Open
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/html-missing-csp-meta
Open

feat(html): detect HTML documents without a Content-Security-Policy meta tag (CWE-693)#133
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/html-missing-csp-meta

Conversation

@ai-anant

Copy link
Copy Markdown

Adds codevigilant.html.securitypolicy.missing-csp-meta (severity LOW, CWE-693).

Pattern: an HTML document (<html>...</html>) whose markup contains no <meta http-equiv="Content-Security-Policy" ...> element.

  • Positive repro (HTML without CSP meta) → rule fires
  • Negative repro (HTML with CSP meta) → rule does not fire
  • Validated with semgrep --validate

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

Successfully merging this pull request may close these issues.

1 participant