Missing authorization in PerformanceAPIs (CVE-2026-113014)
The Long Animation Frame API failed to sanitise script source locations for opaque cross-origin scripts when promises were resolved, exposing byte offsets and sourceURL comments. An attacker could use this to infer the length of sensitive dynamic content inside cross-origin scripts.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 months
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 Chrome Security team.
Overview: The Long Animation Frame (LoAF) API potentially leaks internal byte offsets and sourceURL comments from cross-origin opaque scripts. The promise-resolution path fails to verify if a script is opaque before capturing its source location. Attackers can exploit this to infer the length of sensitive dynamic content inside cross-origin scripts.
Affected files:
third_party/blink/renderer/core/frame/animation_frame_timing_monitor.ccthird_party/blink/renderer/platform/bindings/lazy_source_location.ccthird_party/blink/renderer/bindings/core/v8/script_promise_resolver.ccthird_party/blink/renderer/core/timing/performance_script_timing.ccthird_party/blink/renderer/core/timing/performance_script_timing.idl
Estimated timestamp from git blame: 2026-03-19
Potential Vulnerability Details
The Long Animation Frame (LoAF) API exposes script attribution details, including sourceCharPosition and sourceURL, via the PerformanceScriptTiming interface. To comply with the web's "muted errors" policy, intra-script details must not be exposed for opaque cross-origin scripts (scripts loaded without CORS).
While the primary script execution path correctly sanitizes these values by checking origin.Options().IsOpaque() in CaptureScriptSourceLocation(), the path used for promise resolvers bypasses this protection.
When a promise-returning Web API is invoked, Blink creates a ScriptPromiseResolverBase. Its constructor captures the script location using LazySourceLocation::FromCurrentStack(). This function extracts the raw byte offset (GetSourcePosition()) and URL (GetScriptNameOrSourceURL()) directly from the top v8::StackFrame without checking if the underlying script origin is opaque.
When the promise is resolved or rejected, probe::WillHandlePromise passes this unsanitized LazySourceLocation to the AnimationFrameTimingMonitor, which attaches it to a ScriptTimingInfo object. Because the opaque script executes in the attacker's window, the ScriptTimingInfo inherits the attacker's ExecutionContext origin. Finally, when the PerformanceLongAnimationFrameTiming entry is created, the access check (security_origin->CanAccess(script->GetSecurityOrigin())) trivially passes since both the observer and the execution context belong to the attacker. As a result, the unsanitized sourceCharPosition and //# sourceURL comment contents are exposed to the attacker's PerformanceObserver.
Potential Attacker Steps
Note: These are suggested steps for an attacker. Our tooling agent does not yet have the ability to run code to provide a working proof-of-concept.
- Host a malicious webpage and embed a cross-origin script containing sensitive dynamic content (e.g., CSRF tokens, user-specific data) using a standard
<script src="...">tag without thecrossoriginattribute, making it opaque. - Register a
PerformanceObserveron the page to observelong-animation-frameentries. - Monkey-patch a global method that the victim script is expected to call immediately before or during promise resolution (e.g.,
Response.prototype.jsonorPromise.prototype.then). In the patch, insert a synchronous busy-loop that stalls the thread for >50ms to force a Long Animation Frame. - When the victim script calls a promise-returning API (like
fetch()), the busy-loop triggers a LoAF entry. - In the
PerformanceObservercallback, readentry.scripts[i].sourceCharPosition. - Use the precise leaked byte offset to mathematically infer the length of any dynamic content injected earlier in the script (a deterministic XS-Leak).
- Read
entry.scripts[i].sourceURLto extract the contents of the//# sourceURLcomment, bypassing CORS restrictions.
Suggested Fix
The fix should ensure that promise resolvers respect the opaque script policy.
Modify LazySourceLocation::FromCurrentStack (in third_party/blink/renderer/platform/bindings/lazy_source_location.cc) to check if the script associated with the v8::StackFrame is opaque. This could be done by accessing the script's origin and checking its options, similar to CaptureScriptSourceLocation. If the script is opaque, char_position_, line_number_, and column_number_ should be set to 0, and a sanitized resource name should be used instead of GetScriptNameOrSourceURL() to prevent leaking the //# sourceURL comment.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
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.
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 promise resolver path captured script location details without checking whether the script's origin was opaque, unlike the main script execution path.
Impact
An attacker could infer the length of sensitive dynamic content inside cross-origin scripts and read sourceURL comments, bypassing CORS restrictions.
What the attacker needed
Victim visits attacker page; cross-origin script without CORS; attacker can monkey-patch globals
The fix
The fix should make LazySourceLocation::FromCurrentStack check if the script is opaque and sanitise the position and resource name accordingly.
How it was found
- Host a page that embeds a cross-origin script without the crossorigin attribute.
- Register a PerformanceObserver for long-animation-frame entries.
- Monkey-patch a global method to insert a busy-loop that forces a long animation frame.
- Trigger a promise-returning API call from the victim script.
- Read the leaked sourceCharPosition and sourceURL from the observer callback.
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.
When a website loads a script from another site without permission to read it, the browser normally hides details about that script's contents. Here, a timing feature accidentally revealed where in the script certain actions happened, which could let an attacker guess how long secret values inside the script are.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.