Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilityextension-plugin-hijackinitial-access-method

Browser Extension Message Chains Enable Website-to-OS Code Execution

Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Sep 3, 2026

Browser Extension Message Chains Enable Website-to-OS Code Execution

A researcher disclosed a "universal code execution" attack pattern in browser extensions in which a malicious website sends crafted window.postMessage data to a content script that forwards it to a privileged extension background process. Extensions that inject content scripts broadly and fail to validate message origins can expose privileged capabilities to arbitrary websites, including cross-origin cookie access and same-origin policy bypasses.

The impact can escalate to operating-system command execution when the extension relays attacker-controlled data through Chrome native messaging to an unsafe native host. The researcher identified the pattern through extension-manifest analysis and Semgrep taint tracking, and reported two censored, allegedly unpatched cases affecting large user populations; one smart-card extension with roughly two million users reportedly allowed a malicious DLL to be loaded through path traversal in a PKCS#11 library path. Organizations should assess extensions for strict content-script scope, origin and schema validation on message-passing interfaces, and hardened native-message handling.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · 2017
  1. Reported Jul 7, 20242y ago

    Researcher discloses two browser-extension vulnerability chains

    The researcher disclosed two vulnerabilities to the respective extension owners. The censored cases involved insecure content-script message forwarding that could enable cookie theft or, through native messaging and a path-traversal flaw, operating-system code execution.

    Universal Code Execution by Chaining Messages in Browser Extensions | Spaceraccoon's Blog
  2. 2017

    Prior research demonstrates postMessage relaying to native applications

    Arseny Reutov published prior work on relaying postMessage traffic through Chrome extensions toward native applications.

    Universal Code Execution by Chaining Messages in Browser Extensions | Spaceraccoon's Blog
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.