Skip to content

Barrion Security Fix: CSP Bypass Detection#2

Open
barrion-dev[bot] wants to merge 1 commit into
masterfrom
barrion-fix/cspbypassdetection-1773178946260
Open

Barrion Security Fix: CSP Bypass Detection#2
barrion-dev[bot] wants to merge 1 commit into
masterfrom
barrion-fix/cspbypassdetection-1773178946260

Conversation

@barrion-dev

@barrion-dev barrion-dev Bot commented Mar 10, 2026

Copy link
Copy Markdown

Security Fix

This PR was auto-generated by Barrion AI to fix: CSP Bypass Detection

What was fixed

The application was vulnerable to a Content Security Policy (CSP) bypass via base URI injection because the base-uri directive was missing. This allowed an attacker to inject a <base> tag and redirect relative URLs to a malicious domain. The fix adds base-uri 'self' to the CSP meta tag, preventing such injections and ensuring all relative URLs are resolved against the document's original base URI.

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.

0 participants