Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-103087 Overview
CVE-2026-103087 is an uncontrolled recursion vulnerability [CWE-674] in the Gosub browser engine (gosub-engine) affecting versions through 0.1.0 and main before commit 46868b3. A remote attacker can trigger stack exhaustion and crash the application by serving an SVG document containing an excessive number of deeply nested elements. The engine does not enforce a nesting depth limit when processing SVG nodes, so rendering the malicious document overflows the thread stack. Attackers can embed the SVG payload through the SRC attribute of an IMG element, meaning exploitation only requires the victim to visit an attacker-controlled web page.
Critical Impact
Remote, unauthenticated denial of service against any application embedding the Gosub browser engine, triggered by visiting a crafted web page.
Affected Products
- Gosub browser engine (gosub-engine) versions through 0.1.0
- Gosub main branch before commit 46868b3
- Applications and downstream projects embedding the vulnerable gosub-engine crate
Discovery Timeline
- 2026-09-30 - CVE-2026-103087 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-103087
Vulnerability Analysis
The flaw sits in the SVG parsing and rendering path of gosub-engine. The engine walks SVG document trees recursively without tracking or capping recursion depth. When the parser encounters a document with thousands of nested child elements, each level consumes stack frames until the operating system terminates the thread for exceeding its stack size. The result is an immediate crash of the host application. This is a classic uncontrolled recursion issue [CWE-674] where attacker-controlled input dictates the depth of a recursive traversal.
Root Cause
The engine's SVG node traversal functions do not enforce a maximum nesting depth. Neither the parser nor the layout stage validates that the input tree fits within a bounded call stack. Any recursive descent over a deeply nested node hierarchy therefore scales linearly with attacker-controlled input. The upstream fix in commit 46868b3 introduces depth accounting during SVG processing, rejecting or truncating documents that exceed the limit.
Attack Vector
Exploitation is network-based and requires only passive user interaction. An attacker hosts a page containing an <img> tag whose src attribute references an SVG document with deeply nested elements such as thousands of stacked <g> groupings. When a client using gosub-engine loads the page, the engine fetches and parses the SVG, recurses through the nested structure, exhausts the thread stack, and crashes. The SVG can also be delivered inline, through data: URIs, or from any origin the browser will fetch. Repeated triggering prevents users from browsing normally.
No verified public exploit code is available. Refer to the GitHub Security Advisory GHSA-c762-mxfh-vwvp and the upstream fix in Pull Request #1229 for technical details.
Detection Methods for CVE-2026-103087
Indicators of Compromise
- Repeated crashes or SIGSEGV / stack overflow terminations of processes linking against gosub-engine shortly after loading web content.
- HTTP responses containing SVG documents (Content-Type: image/svg+xml) with abnormally large element counts or nesting depth (for example, thousands of nested <g>, <svg>, or <defs> tags).
- Referrer chains showing the crash followed a fetch of an <img src="...svg"> resource from an untrusted origin.
Detection Strategies
- Inspect SVG payloads at the proxy or web gateway and flag documents whose XML nesting depth exceeds a conservative threshold (for example, 256 levels).
- Correlate application crash telemetry with recent network fetches of SVG content to identify DoS triggers.
- Perform static analysis of installed binaries and Rust dependency manifests (Cargo.lock) to enumerate builds using vulnerable gosub-engine versions.
Monitoring Recommendations
- Monitor host and application logs for recurring stack-exhaustion crashes tied to the rendering process.
- Track outbound requests to newly registered or low-reputation domains serving image/svg+xml content.
- Alert on abnormally deep XML/SVG structures observed in web traffic captured by network security tooling.
How to Mitigate CVE-2026-103087
Immediate Actions Required
- Upgrade gosub-engine to a build that includes commit 46868b3 or later from the main branch.
- Audit downstream applications and Rust workspaces for transitive dependencies on vulnerable gosub-engine versions and rebuild once patched.
- Restrict rendering of SVG content from untrusted origins until the patched engine is deployed.
Patch Information
The upstream project fixed the issue by enforcing a bounded nesting depth during SVG processing. The fix is included in commit 46868b3 on the main branch, referenced by Pull Request #1229. Consult the GitHub Security Advisory GHSA-c762-mxfh-vwvp for the authoritative advisory and version guidance.
Workarounds
- Block or strip image/svg+xml responses at an upstream proxy for applications that do not require SVG rendering.
- Sanitize inbound SVG documents with a strict XML parser that enforces a maximum element depth before passing content to the engine.
- Isolate the rendering process (for example, via a sandboxed worker or subprocess) so that a crash does not terminate the parent application.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

