GHSA-pxh3-4qqv-58mg

Suggest an improvement
Source
https://github.com/advisories/GHSA-pxh3-4qqv-58mg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-pxh3-4qqv-58mg/GHSA-pxh3-4qqv-58mg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pxh3-4qqv-58mg
Aliases
Published
2026-11-19T20:45:22Z
Modified
2026-11-19T21:00:03Z
Severity
  • 8.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L CVSS Calculator
Summary
Servo Sandbox bypass: declarative refresh can auto-navigate a sandboxed iframe
Details

A sandboxed iframe can auto-navigate itself via declarative refresh even when automatic features should be blocked. This allows attacker-controlled embedded content to redirect itself without user action.

Summary

Servo allows a sandboxed iframe to auto-navigate itself via declarative refresh in configurations that should block automatic features.

The issue reproduces in the must-block rows of the matrix:

  • sandbox=""
  • sandbox="allow-same-origin"
  • sandbox="allow-forms"
  • sandbox="allow-same-origin allow-forms"

This is a client-side sandbox-policy bypass. It does not by itself prove script execution or parent DOM access, but it does let attacker-controlled sandboxed content redirect itself without user action.

Details

The declarative refresh path is missing sandbox enforcement:

  • [components/script/dom/document/document.rs:239] RefreshRedirectDue::invoke() contains TODO: check sandbox
  • [components/script/dom/document/document.rs:4522] the refresh scheduler contains TODO: handle active sandboxing flag

The implementation currently schedules and executes the refresh without enforcing the sandboxed automatic-features restriction described by the HTML spec comments in the same code.

What I observed:

  • In Servo, the must-block rows above navigated successfully.
  • In Chrome, the same rows were blocked.

PoC

Serve the HTML files in this folder over HTTP.

Files:

Steps:

  1. Open viewer.html over HTTP.
  2. The page shows a visible sandboxed iframe.
  3. In a correct browser, the iframe stays on child.html.
  4. In Servo, the iframe visibly turns into the success.html page.

Impact

This is a client-side sandbox-policy bypass.

Confirmed impact:

  • autonomous iframe self-navigation in sandbox configurations that should block it
  • framed phishing / content swap after initial render
  • redirect loops / annoyance / limited DoS
Database specific
{
    "cwe_ids": [
        "CWE-693"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-19T20:45:22Z",
    "nvd_published_at": "2026-11-17T22:19:20Z",
    "severity": "HIGH"
}
References

Affected packages

crates.io / servo

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.3.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-pxh3-4qqv-58mg/GHSA-pxh3-4qqv-58mg.json"