Loading vulnerability details...
| Property | Value |
|---|---|
| Advisory ID | SGZ-2026-4DEA3 |
| Severity | HIGH |
| CWE | CWE-79 |
| Confidence | 80% |
| Category | injection |
| Exploitability | likely |
| Package | lantern_ui@latest (JavaScript) |
| Location | priv/static/lantern_ui_hooks.js:5-10 |
| Attack Vector | NETWORK |
| Attack Complexity | LOW |
| Privileges Required | NONE |
| Discovered By | SafeGuard Zero-Day AI Discovery Engine |
The esc function does not properly escape user-controlled input, allowing for a DOM-based XSS attack.
The vulnerability was identified in the file priv/static/lantern_ui_hooks.js at lines 5-10 within the lantern_ui package (version latest). Any code path that invokes these functions inherits this vulnerability.
File: priv/static/lantern_ui_hooks.js (lines 5-10)
const esc = (s) => String(s).replace(/[&<>"]/g, (c) => ({ "&": "&", "<": "<", ">": ">", """: """ })[c])
The code above demonstrates the vulnerable pattern. This code is executed at runtime and can be directly exploited by an attacker with the appropriate access level.
An attacker could inject malicious JavaScript code as a user-controlled input, which would be executed by the browser.
An attacker could steal user data or take control of the user's session.
Use a more robust escaping function, such as DOMPurify.
Advisory: SGZ-2026-4DEA3 | Source: SafeGuard Zero-Day AI Discovery | Status: Candidate
This vulnerability was autonomously discovered by SafeGuard's AI-powered Zero-Day Discovery engine using TAOR (Think-Act-Observe-Repeat) agentic analysis on the package source code. It is not yet tracked in any public vulnerability database (CVE, NVD, GHSA, OSV). This finding should be triaged by a security engineer and, if confirmed, reported upstream to the package maintainer.
| Property | Value |
|---|---|
| Advisory ID | SGZ-2026-4DEA3 |
| Severity | HIGH |
| CWE | CWE-79 |
| Confidence | 80% |
| Category | injection |
| Exploitability | likely |
| Package | lantern_ui@latest (JavaScript) |
| Location | priv/static/lantern_ui_hooks.js:5-10 |
| Attack Vector | NETWORK |
| Attack Complexity | LOW |
| Privileges Required | NONE |
| Discovered By | SafeGuard Zero-Day AI Discovery Engine |
The esc function does not properly escape user-controlled input, allowing for a DOM-based XSS attack.
The vulnerability was identified in the file priv/static/lantern_ui_hooks.js at lines 5-10 within the lantern_ui package (version latest). Any code path that invokes these functions inherits this vulnerability.
File: priv/static/lantern_ui_hooks.js (lines 5-10)
const esc = (s) => String(s).replace(/[&<>"]/g, (c) => ({ "&": "&", "<": "<", ">": ">", """: """ })[c])
The code above demonstrates the vulnerable pattern. This code is executed at runtime and can be directly exploited by an attacker with the appropriate access level.
An attacker could inject malicious JavaScript code as a user-controlled input, which would be executed by the browser.
An attacker could steal user data or take control of the user's session.
Use a more robust escaping function, such as DOMPurify.
Advisory: SGZ-2026-4DEA3 | Source: SafeGuard Zero-Day AI Discovery | Status: Candidate
This vulnerability was autonomously discovered by SafeGuard's AI-powered Zero-Day Discovery engine using TAOR (Think-Act-Observe-Repeat) agentic analysis on the package source code. It is not yet tracked in any public vulnerability database (CVE, NVD, GHSA, OSV). This finding should be triaged by a security engineer and, if confirmed, reported upstream to the package maintainer. This vulnerability involves weaknesses in
This high-severity vulnerability could allow attackers to gain unauthorized access, execute arbitrary code, or compromise data integrity. Prompt remediation is strongly recommended.
Isolate affected systems from untrusted networks until patching is complete
Implement enhanced monitoring for exploitation attempts and unusual behavior