CVE-2026-104587

Stored Cross‑Site Scripting in Blob42 gosuki via Unescaped URL Field

Published Oct 13, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
blob42 gosuki through commit 6e2bf34 contains a Stored Cross-Site Scripting (XSS) vulnerability. The application uses text/template instead of html/template, failing to perform context-aware auto-escaping on the URL and DisplayURL fields of bookmarks in internal/webui/templates/bookmarks.html. An attacker can craft a malicious bookmark URL containing HTML attribute-breaking payloads that execute arbitrary JavaScript in the victim's browser context when rendered in the local web interface.

Analysis

AI-generated

Technical impact

The blob42 gosuki application stores user bookmarks and renders them in the web UI using Go’s text/template engine instead of the safer html/template engine. Because the URL and DisplayURL fields are not context‑aware escaped, attackers can embed malicious JavaScript inside a bookmark URL that causes arbitrary code to run in a victim’s browser when the bookmark list is rendered. This stored XSS flaw can lead to session hijacking, credential theft, or further exploitation within the victim’s environment. It is an example of an input validation and output encoding weakness.

Affected Systems

The vulnerability is present in the blob42 gosuki bookmark manager. No specific product versions are listed, and the flaw resides in the internal/webui/templates/bookmarks.html template used by the application.

Risk and Exploitability

The EPSS score is reported as less than 1%, indicating a low, though not zero, likelihood of public exploitation. The flaw is not listed in the CISA KEV catalog. An attacker must inject a malicious bookmark into the system; a user who subsequently visits the web UI will trigger the script. Because the attack requires a vulnerable instance and a victim who opens the page, the overall risk is moderate until a patch is applied. The vulnerability can be exploited directly through the application’s input for bookmarks, so it is an in‑application attack vector.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a version of blob42 gosuki that uses html/template for rendering bookmark URLs
  • If no patched release is available, modify the bookmarks.html template to escape the URL and DisplayURL fields manually or replace text/template with html/template
  • Sanitize or validate bookmark URL input to allow only safe schemes (e.g., http, https) and strip dangerous characters

Generated by OpenCVE AI on October 17, 2026 at 07:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Stored Cross‑Site Scripting in Blob42 gosuki via Unescaped URL Field
Type Values Removed Values Added
Weaknesses CWE-79
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description blob42 gosuki through commit 6e2bf34 contains a Stored Cross-Site Scripting (XSS) vulnerability. The application uses text/template instead of html/template, failing to perform context-aware auto-escaping on the URL and DisplayURL fields of bookmarks in internal/webui/templates/bookmarks.html. An attacker can craft a malicious bookmark URL containing HTML attribute-breaking payloads that execute arbitrary JavaScript in the victim's browser context when rendered in the local web interface.
References

Subscriptions

No data.

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 15, 2026, 2:48 PM
Reserved
Oct 2, 2026, 12:00 AM
Status
Deferred
Published
Oct 13, 2026, 9:17 PM
Modified
Oct 16, 2026, 7:56 PM