CVE-2026-66824

Stored Cross-Site Scripting via Unsafe Capture Tree JSON Embedding

Published Jul 27, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
Description
A stored cross-site scripting vulnerability existed in the capture tree visualization page. The application embedded the serialized capture tree directly into an inline JavaScript block using the Jinja safe filter.

Because the tree data can contain values derived from captured and potentially attacker-controlled web content, a specially crafted value could prematurely terminate the surrounding <script> element and inject arbitrary HTML or JavaScript. The malicious code would execute in the browser of a user viewing the affected capture tree.

Successful exploitation could allow an attacker to perform actions using the victim’s authenticated session, access information available to the victim, or modify application data within the permissions of the affected user.

The patch removes the JSON data from the HTML document and retrieves it through a dedicated API endpoint. The client then processes the response using response.json(), preventing capture data from being interpreted as executable content within the original page’s HTML or JavaScript context.

Analysis

AI-generated

Technical impact

A stored cross‑site scripting flaw existed in Lookyloo’s capture tree visualization page. The application serialized the capture tree directly into an inline JavaScript block using Jinja’s safe filter. Because the tree data can include values derived from captured, potentially attacker‑controlled web content, a crafted value could prematurely terminate the surrounding <script> element and inject arbitrary HTML or JavaScript. When a user views the affected capture tree, the malicious code runs in their browser. This enables an attacker to execute any JavaScript within the victim’s authenticated session, gaining access to information and the ability to perform actions or modify data that the victim is authorized to manipulate.

Affected Systems

The vulnerability affects the Lookyloo web application, specifically the capture tree visualization component. No specific product version information is listed. The issue is present in any deployment that uses the unpatched code path for rendering the capture tree.

Risk and Exploitability

The vulnerability carries a CVSS score of 9.2, indicating a high‑severity risk. EPSS score is 0.00277, indicating a very low exploitation probability, and the vulnerability is not yet listed in CISA’s KEV catalog. The likely attack vector involves an attacker creating a malicious capture tree that the victim subsequently opens. Once the victim’s browser processes the embedded JSON, the injected script executes with the victim’s privileges, allowing session‑based actions or data tampering within the victim’s authority scope.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official patch that removes the JSON data from the HTML document and retrieves it through a dedicated API endpoint, ensuring the client processes the response with response.json()
  • Verify that no user‑supplied data is embedded within inline script tags in any part of the Lookyloo web interface
  • If the patch cannot be applied immediately, restrict access to the capture tree visualization to only trusted, authenticated users or sanitize any embedded data before rendering

Generated by OpenCVE AI on August 3, 2026 at 16:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Lookyloo
Lookyloo lookyloo
Vendors & Products Lookyloo
Lookyloo lookyloo
Type Values Removed Values Added
Description A stored cross-site scripting vulnerability existed in the capture tree visualization page. The application embedded the serialized capture tree directly into an inline JavaScript block using the Jinja safe filter. Because the tree data can contain values derived from captured and potentially attacker-controlled web content, a specially crafted value could prematurely terminate the surrounding <script> element and inject arbitrary HTML or JavaScript. The malicious code would execute in the browser of a user viewing the affected capture tree. Successful exploitation could allow an attacker to perform actions using the victim’s authenticated session, access information available to the victim, or modify application data within the permissions of the affected user. The patch removes the JSON data from the HTML document and retrieves it through a dedicated API endpoint. The client then processes the response using response.json(), preventing capture data from being interpreted as executable content within the original page’s HTML or JavaScript context.
Title Stored Cross-Site Scripting via Unsafe Capture Tree JSON Embedding
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:H/SI:N/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
CIRCL
Published
Updated
Jul 28, 2026, 3:20 PM
Reserved
Jul 27, 2026, 7:56 PM
Status
Deferred
Published
Jul 27, 2026, 9:17 PM
Modified
Jul 30, 2026, 4:55 PM