Servo
Servo Sandbox bypass: `meta refresh` can execute `javascript:` in `sandbox=""`
Servo is a lightweight, high-performance web rendering engine for embedding web technologies in applications. Prior to 0.4.0, a frame with sandbox="" can reach and execute a javascript: URL through declarative refresh because RefreshRedirectDue::invoke() in components/script/dom/document/document.rs can reach JavaScript URL handling in components/script/script_thread.rs without enforcing the sandbox's script prohibition. This gives attacker-controlled content arbitrary JavaScript execution in a frame intended to be scriptless, including nested DOM probe creation and blind browser requests. The frame retains an opaque origin, so the issue does not by itself provide parent DOM access. This issue is fixed in version 0.4.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.4.0
Fixed in 0.4.0
Mitigation
Upgrade servo to 0.4.0 or later.
References
- Vendor advisory github.com/servo/servo/security/advisories/GHS…
- Patch github.com/servo/servo/pull/45913
- Patch github.com/servo/servo/commit/f4739defe0ffa3a1…
1 more
- Release notes github.com/servo/servo/releases/tag/0.4.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.