Insufficient policy enforcement in V8 (CVE-2026-15775)
A same-site cross-origin attacker page could read hidden error-stack state from a victim WindowProxy by borrowing the local Error.stack getter and calling it on an object whose prototype is the victim WindowProxy. This leaked the victim's final page URL, including a victim-generated navigation token, despite direct cross-origin reads being blocked.
- Fix shipped in 10 days
Same-Site Cross-Origin Hidden Error-State Bypass with Default-Stack Navigation-Token Disclosure
Summary
Chrome/V8 allows a same-site cross-origin attacker page to read hidden
Error.stack state from a victim WindowProxy after the victim page seeds
stack state on window.
The attached PoC does not use victim Error.prepareStackTrace. The victim
final page uses the documented custom-error pattern
Error.captureStackTrace(this, Ctor) from a non-strict ordinary function call.
In that browser call shape, this === window, so V8 stores hidden error-stack
state on the victim global object without the victim code explicitly passing
window or globalThis.
Direct attacker reads are blocked:
contentWindow.location.hrefthrowsSecurityErrorcontentWindow.stackthrowsSecurityError- normal prototype-chain
o.stackalso throwsSecurityError
However, if the attacker borrows the local Error.stack getter and calls it on
a local object whose prototype is the cross-origin victim WindowProxy, the
getter returns the victim's default formatted stack string. That string includes
the final victim page URL and leaks a victim-generated
?code=OAUTH_CODE_<uuid> navigation token.
The current demonstrated scope is same-site cross-origin. A true cross-site
nip.io to sslip.io variant was tested separately and failed closed to
undefined, so this report does not claim arbitrary cross-site disclosure.
Suggested component: Blink>JavaScript.
Suggested bug class: same-site cross-origin information disclosure / same-origin policy bypass.
Tested Versions
Observed positive:
- Chromium
149.0.7827.55, Linux x64 - Google Chrome for Testing
150.0.7871.46, Linux x64 - V8 source snapshot
0c7a9d0d8c05491e8053d7259a1a6b11e75c1907
Observed scope:
- Positive:
http://127.0.0.1:8000->http://127.0.0.1:8001 - Positive:
http://attacker.127.0.0.1.nip.io:8000->http://victim.127.0.0.1.nip.io:8001 - Positive under an explicit Chrome
--site-per-processvalidation run for the same-site different-host pair - Negative:
http://attacker.127.0.0.1.nip.io:8000->http://victim.127.0.0.1.sslip.io:8001, where the borrowed getter returnedundefined
Attached Files
All attached files should be placed in the same directory:
report.mdpoc.htmlvictim-start.htmlvictim-final.html
Reproduction Steps
Run two local HTTP servers from the directory containing the attached files:
python3 -m http.server 8000 --bind 127.0.0.1
In a second terminal, from the same directory:
python3 -m http.server 8001 --bind 127.0.0.1
Open this URL in Chrome:
http://127.0.0.1:8000/poc.html
Optional same-site different-host variant, using the same two servers:
http://attacker.127.0.0.1.nip.io:8000/poc.html?victimOrigin=http%3A%2F%2Fvictim.127.0.0.1.nip.io%3A8001
The victim bootstrap page creates a random placeholder code and self-navigates to:
victim-final.html?code=OAUTH_CODE_<uuid>
The victim final page then runs:
function VictimSloppyCustomErrorFrame_Q4P7() {
window.__producerThisIsWindow = (this === window);
Error.captureStackTrace(this, VictimSloppyCustomErrorFrame_Q4P7);
}
VictimSloppyCustomErrorFrame_Q4P7();
Because the function is called as an ordinary non-strict browser function,
this === window. The attacker page then creates a local object with the
victim WindowProxy as its prototype and invokes the local stack getter on
that object.
Expected Result
Every path from the attacker to the victim WindowProxy should observe the
same cross-origin access-control boundary. If direct location.href, direct
window.stack, and normal prototype-chain o.stack reads throw
SecurityError, then invoking a local Error.stack getter should not disclose
hidden stack state from the cross-origin victim object.
Actual Result
Representative output from poc.html:
direct.location.href=SecurityError:...
direct.stack=SecurityError:...
proto.stack=SecurityError:...
producer.this_is_window=true
borrowed.type=string
borrowed.has_code_param=true
borrowed.has_uuid_shape=true
borrowed.has_final_url=true
borrowed.first_line=at http://victim.127.0.0.1.nip.io:8001/victim-final.html?code=OAUTH_CODE_<uuid>:11:1
The important split is:
- Direct public cross-origin reads are blocked.
- The victim producer really ran with
this === window. - The borrowed getter still returns a string from the victim hidden stack state.
- That string contains the final victim URL and the victim-generated navigation token.
This is not a same-origin read of the attacker's own data. The leaked URL is the final URL of the cross-origin victim frame.
Root Cause Analysis
The relevant stack getter path is:
Accessors::ErrorStackGetterErrorUtils::GetFormattedStackGetErrorStackPropertyLookupIteratorlookup for V8 private internal error-state symbols
The public cross-origin property reads correctly hit access checks and throw
SecurityError. The hidden error-state lookup is different because it uses V8
private internal names such as the internal error stack symbol.
The relevant policy split is that access-checked holders do not enter the
normal ACCESS_CHECK state for private internal names:
if (map->is_access_check_needed()) {
if (is_element || !name_->IsPrivateInternal()) return ACCESS_CHECK;
}
That means a public property read like contentWindow.stack is blocked, but a
borrowed hidden-stack lookup can still walk to the cross-origin holder and read
hidden error metadata.
There is also a historical hardening signal. V8 commit fa81078cca6
explicitly made Error.captureStackTrace() a no-op for JSGlobalProxy targets
under chromium:1432210. Later commit 79cdd69a1cf rewrote Error.stack as a
JavaScript accessor path and removed that specific JSGlobalProxy guard. The
current producer is therefore a reopened hardening gap: victim code can once
again place hidden stack state on a browser global object.
Security Impact
This is a same-site cross-origin information disclosure. It bypasses the ordinary same-origin policy check for a cross-origin frame and leaks a victim-generated navigation token embedded in the final victim page URL.
The token in the PoC is intentionally a placeholder generated as
OAUTH_CODE_<uuid>. The security-relevant property is that the attacker page
learns a victim-frame URL component that direct location.href access cannot
read.
The strongest current claim is not arbitrary cross-site disclosure. The tested true cross-site host pair fails closed. The issue is still security-relevant because same-site cross-origin boundaries are ordinary web security boundaries: different ports and different subdomains are cross-origin, and direct access is correctly blocked by Chrome except through this hidden-state path.
Scope and Limitations
- Victim-side producer required: the victim page must seed hidden stack state
on
window. - No victim
Error.prepareStackTraceis required for the attached PoC. - The producer uses a standard custom-error idiom in a non-strict ordinary browser function call.
- True cross-site
nip.io->sslip.iowas tested separately and currently returnedundefined. - Common public cross-origin property reads remain blocked with
SecurityError.
Suggested Fix Direction
Either of these would close the demonstrated issue:
- Restore an effective
JSGlobalProxy/ browser global no-op guard inError.captureStackTrace, so hidden error state cannot be installed on browser global objects. - Enforce access checks when private internal error-state lookup traverses an
access-checked
WindowProxy/ global holder from an attacker-controlled receiver or prototype chain.
The first option addresses the producer. The second option addresses the shared hidden-state consumer and may also cover adjacent hidden error metadata paths.
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, V8's access-check logic for private internal names skips the access check when the property name is a private internal symbol, allowing a borrowed Error.stack getter to read hidden error state from a cross-origin WindowProxy.
Impact
A same-site cross-origin attacker page could read a victim-generated navigation token from the victim's final URL, though true cross-site disclosure was not demonstrated and direct cross-origin reads remained blocked.
What the attacker needed
Victim page seeds hidden stack state on window; attacker page same-site cross-origin to victim; victim page uses Error.captureStackTrace in non-strict call
The fix
The issue should be fixed by either restoring a no-op guard for Error.captureStackTrace on browser global objects or enforcing access checks when private internal error-state lookup traverses an access-checked WindowProxy.
How it was found
- Run two local HTTP servers on ports 8000 and 8001.
- Open the attacker page in Chrome.
- The victim page seeds hidden stack state on window using Error.captureStackTrace in a non-strict function call.
- The attacker creates a local object with the victim WindowProxy as its prototype and calls the local Error.stack getter on it.
- The getter returns the victim's formatted stack string containing the final URL and token.
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.
Normally, a web page from one origin cannot read data from a page on a different origin. This report shows a way to sneak around that rule: by using a built-in JavaScript feature (the Error.stack getter) in an unusual way, an attacker page could read a hidden error message from the victim page. That message contained the victim page's web address, including a secret code.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.