Skip to main content
Vulnerability Database/CVE-2026-97723

CVE-2026-97723: ka9q_ubersdr Stored XSS Vulnerability

CVE-2026-97723 is a stored cross-site scripting flaw in ka9q_ubersdr that allows attackers to inject malicious JavaScript through chat messages. This post explains its impact, affected versions, and mitigation steps.

Published:

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-97723 Overview

CVE-2026-97723 is a stored cross-site scripting (XSS) vulnerability affecting madpsy ka9q_ubersdr versions prior to 0.1.58. The flaw resides in the chat message rendering functionality, where user-controlled URLs are insufficiently neutralized before being converted into HTML links. Quotation characters in attacker-supplied URLs break out of the generated href attribute, enabling injection of arbitrary HTML attributes. This allows attacker-controlled JavaScript to execute in another user's browser when the stored chat message is rendered. No user interaction with the malicious link is required for the payload to fire.

Critical Impact

Stored XSS executes arbitrary JavaScript in victim browsers automatically when chat history is rendered, enabling session hijacking, UI manipulation, and client-side actions on behalf of the targeted user.

Affected Products

  • madpsy ka9q_ubersdr versions before 0.1.58
  • Chat message rendering component (chat_websocket.go)
  • Any user session that loads replayed or seeded chat history

Discovery Timeline

  • 2026-09-25 - CVE-2026-97723 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-97723

Vulnerability Analysis

The vulnerability is a stored XSS classified under [CWE-79], Improper Neutralization of Input During Web Page Generation. The chat subsystem accepts user-submitted messages, detects URLs within them, and transforms those URLs into clickable <a href="..."> HTML links. The URL text itself is embedded into the href attribute without adequate escaping of quotation characters. An attacker who includes a " in their submitted URL can prematurely close the attribute and append arbitrary attributes such as onmouseover, onload, or onerror with JavaScript payloads.

Because the malicious message is persisted and replayed to subsequent users joining the channel, the payload executes server-side-stored content in every viewer's browser. Rendering alone triggers execution, so the victim does not need to click the link.

Root Cause

The root cause is insufficient output encoding when constructing HTML link markup from user-controlled URL strings. Quote characters are not escaped or stripped prior to concatenation into the href attribute. Additionally, historical chat rows stored before any sanitization existed were replayed verbatim into the message buffer, extending exposure to legacy content.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker submits a chat message containing a crafted URL with embedded quote characters and HTML event-handler attributes. The server stores the message, and every subsequent client that loads the chat history renders the injected HTML, executing the attacker's JavaScript in the victim's browser context.

go
// Security patch in chat_websocket.go introduced in version 0.1.58
		return
	}
	seeded := cm.chatLogger.LoadRecentMessages(cm.maxMessages, 7, nil)
	// Rows written before URL sanitisation existed may still carry an
	// attribute-breaking URL, so clean them on the way into the replay buffer.
	for i := range seeded {
		seeded[i].Message = sanitizeMessageURLs(seeded[i].Message)
	}
	if len(seeded) > 0 {
		cm.messageBufferMu.Lock()
		cm.messageBuffer = append(cm.messageBuffer, seeded...)

Source: GitHub Commit 6aa858d. The patch applies sanitizeMessageURLs to seeded messages loaded from history, ensuring legacy stored content is cleaned before being replayed to clients.

Detection Methods for CVE-2026-97723

Indicators of Compromise

  • Chat message records containing " characters, HTML event attributes (onerror=, onmouseover=, onload=), or javascript: URIs within URL fields.
  • Unexpected <script> tags or inline event handlers in persisted chat log entries.
  • Browser console errors or Content Security Policy violations tied to chat message rendering.

Detection Strategies

  • Audit the chat message store for payloads matching regex patterns such as "\s*on\w+\s*= or javascript: embedded in URL fields.
  • Review client-side rendering logs or browser telemetry for unexpected DOM mutations introduced via chat replay.
  • Compare deployed binary/source version against 0.1.58 to confirm whether the sanitization patch is present.

Monitoring Recommendations

  • Deploy a Content Security Policy (CSP) that disallows inline event handlers and inline script execution for the chat UI.
  • Log and alert on chat messages containing HTML metacharacters prior to rendering.
  • Monitor outbound requests from client browsers that correlate with chat page loads for signs of credential or token exfiltration.

How to Mitigate CVE-2026-97723

Immediate Actions Required

  • Upgrade madpsy ka9q_ubersdr to version 0.1.58 or later, which introduces sanitizeMessageURLs for both live and seeded messages.
  • Purge or sanitize historical chat records written before the patch, since replayed legacy rows may still carry attribute-breaking URLs.
  • Rotate session tokens for users who accessed the chat during the exposure window if XSS exploitation is suspected.

Patch Information

The fix is delivered in commit 6aa858da1c030cae11b94c7d6c72322adb9ec60d and merged via pull request #114. The patch adds URL sanitization during message load and applies it to the replay buffer so historical messages are cleaned before being sent to clients. See the GitHub Pull Request #114 for the full change set.

Workarounds

  • Apply a strict Content Security Policy that forbids inline scripts and event handlers in the chat view.
  • Temporarily disable chat history replay, or truncate the stored chat log, until the upgrade can be applied.
  • Deploy a reverse-proxy or application-layer filter that strips quote characters and HTML attributes from chat payloads before they are stored.
bash
# Example: upgrade to the patched release
git fetch --tags
git checkout v0.1.58
go build ./...

# Optional: strict CSP header for the chat application
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'none'

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.