Inappropriate implementation in Media (CVE-2026-7979)
A flaw in Chromium's HLS media handling means that when a cross-origin audio segment is loaded, the audio source provider is never marked as tainted, so the audio is not muted. An attacker could capture that audio via captureStream() and leak it, bypassing the Same-Origin Policy.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 37 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A potential vulnerability exists where an attacker can exfiltrate cross-origin audio from an HLS stream using HTMLMediaElement.captureStream(). Because HLS initialization bypasses standard data source setup, the callback responsible for tainting the audio source provider is never registered. As a result, cross-origin audio segments are not muted in the capture pipeline, leading to a potential Same-Origin Policy bypass.
Affected files:
third_party/blink/renderer/platform/media/web_media_player_impl.ccthird_party/blink/renderer/platform/media/web_audio_source_provider_impl.ccthird_party/blink/renderer/modules/mediacapturefromelement/html_audio_element_capturer_source.ccthird_party/blink/renderer/platform/media/multi_buffer_data_source_factory.ccmedia/filters/demuxer_manager.ccmedia/filters/hls_manifest_demuxer_engine.ccmedia/filters/hls_data_source_provider_impl.cc
Estimated timestamp from git blame: 2026-02-03
Root Cause Analysis
When loading media, WebMediaPlayerImpl::Load() generally creates a primary MultiBufferDataSource and registers a redirect callback via mb_data_source->OnRedirect(blink::BindRepeating(&WebMediaPlayerImpl::OnDataSourceRedirected...)). This callback is critical because OnDataSourceRedirected() is responsible for calling audio_source_provider_->TaintOrigin() if the new origin taints the media.
However, for HLS streams (demuxer_manager_->IsManifestDemuxerURL()), the code takes an early-return path and calls StartPipeline() directly, skipping the primary MultiBufferDataSource creation. Consequently, the OnDataSourceRedirected callback is never registered.
Subsequent HLS segment fetches are handled via MultiBufferDataSourceFactory, but these individual segment data sources are never wired to trigger the taint notification. While the internal HLS engine (HlsManifestDemuxerEngine) correctly aggregates the WouldTaintOrigin() state when cross-origin segments are loaded, WebAudioSourceProviderImpl is never notified. Its internal origin_tainted_ flag remains false.
When an attacker captures the stream using HTMLMediaElement.captureStream(), WebAudioSourceProviderImpl::Render() checks origin_tainted_.IsSet() to determine if it should zero out the audio buffer before handing it to HtmlAudioElementCapturerSource. Because the flag is incorrectly false, the raw, authenticated cross-origin audio is passed directly to the attacker's script.
Note: Video capture is immune to this specific bypass because HtmlVideoElementCapturerSource::sendNewFrame() actively polls web_media_player_->WouldTaintOrigin() on every frame. HtmlAudioElementCapturerSource lacks this polling and relies entirely on the broken push notification.
Potential Attacker Steps
Note: Our tooling agent cannot execute code, so these are suggested steps based on static analysis of the codebase.
- An attacker hosts a malicious webpage with an
<audio>or<video>element pointing to a same-origin HLS manifest (stream.m3u8). Thecrossoriginattribute is omitted. - The manifest initially serves a same-origin media segment (e.g.,
seg0.ts). - The browser starts playback. Because it is same-origin, the initial origin checks in
MediaElementEventListener::UpdateSources()pass. - The attacker's JavaScript listens for the
loadedmetadataevent and executesvideo.captureStream(), hooking up aMediaRecorderto the resultingMediaStream. - The HLS manifest transitions to a cross-origin segment containing authenticated audio (e.g.,
https://victim.com/auth_audio.ts). - Because
crossoriginwas not set, the browser fetches the segment inno-corsmode, appending ambient credentials (cookies) forvictim.com. - The cross-origin audio is demuxed. Because
audio_source_provider_->TaintOrigin()was never called, the audio is not muted. - The attacker's
MediaRecordercaptures the raw audio samples fromvictim.com, achieving a cross-origin data leak.
Suggested Fix
There are two primary ways to resolve this:
- Implement active polling for audio: Update
HtmlAudioElementCapturerSource::OnAudioBus()(or the related callback logic) to pollweb_media_player_->WouldTaintOrigin()on each chunk of audio, similar to howHtmlVideoElementCapturerSource::sendNewFrame()checks it on every video frame. If true, explicitly output silence. - Fix the push notification: Ensure that
HlsManifestDemuxerEngineorHlsDataSourceProviderImplcan trigger a callback toWebMediaPlayerImpl::OnDataSourceRedirected()(or a similar method) whenever the stream's aggregatedWouldTaintOrigin()status flips fromfalsetotrue.
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from 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
Impact
An attacker could exfiltrate cross-origin audio from an HLS stream, bypassing the Same-Origin Policy, but only if the victim visits the attacker's page and the stream includes cross-origin segments.
What the attacker needed
Victim visits attacker's page; attacker controls HLS manifest; cross-origin audio segment with credentials
How it was found
- Attacker hosts a page with an audio/video element pointing to a same-origin HLS manifest, without crossorigin attribute.
- The manifest initially serves a same-origin segment, so initial origin checks pass.
- Attacker's script listens for loadedmetadata and calls captureStream(), hooking a MediaRecorder.
- The HLS manifest switches to a cross-origin segment with authenticated audio.
- The browser fetches the segment in no-cors mode with cookies for the victim origin.
- The cross-origin audio is not muted because the taint flag was never set, so MediaRecorder captures it.
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.
Websites are normally not allowed to read data from other sites (the Same-Origin Policy). This report found that a browser feature for capturing media streams could be tricked into recording audio from another site, because a safety check was skipped for a certain type of streaming video (HLS).
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.