Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2385+ Articles
158+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. SiYuan Stored XSS via Select Option Color Field (CVE-2026-73050)
SiYuan Stored XSS via Select Option Color Field (CVE-2026-73050)

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-73050

SiYuan Stored XSS via Select Option Color Field (CVE-2026-73050)

SiYuan before v3.7.4 fails to escape the color field in attribute-view select options, enabling stored XSS at eight render sites. CVSS 9.0.

Dylan H.

Security Team

August 16, 2026
4 min read

Affected Products

  • SiYuan < 3.7.4

Executive Summary

CVE-2026-73050 is a stored cross-site scripting (XSS) vulnerability in SiYuan versions prior to v3.7.4. The vulnerability lies in the attribute-view select option color field: SiYuan renders this value at eight separate locations without sanitization. An attacker who can edit database select options can inject a color value containing quotation marks and event handler attributes, causing persistent JavaScript execution for any user who views the affected database.

CVSS Score: 9.0 (Critical)


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-73050
CVSS Score9.0 (Critical)
TypeStored Cross-Site Scripting (XSS)
Attack VectorNetwork
AuthenticationRequired (database editor)
User InteractionRequired (victim views database)
Fixed VersionSiYuan v3.7.4
Published2026-08-15

Root Cause

SiYuan's attribute-view component renders select option color values in HTML attributes (typically style or class attributes used for color-coded badges). The color string is stored as-is and embedded at eight distinct render sites across the UI — option badges, filter dropdowns, sort menus, column settings, and view summaries — without HTML-encoding quotation marks or other special characters.

A malicious color value such as:

red" onmouseover="eval(atob('BASE64_PAYLOAD'))

...breaks out of the attribute context at every one of those eight render sites, multiplying the attack surface significantly.


Attack Scenario

1. Attacker with database-editor access creates or edits a select option
2. Sets the option color to a malicious string containing HTML break-out payload
3. Payload is stored persistently in the SiYuan database
4. Any user who views the database — in gallery, table, or filter view — triggers XSS
5. Eight render sites mean the payload fires from multiple distinct UI interactions
6. Attacker exfiltrates notes, session data, or performs actions as the victim

Eight Render Sites

The color field is rendered in:

  1. Option badge in table cell
  2. Option badge in gallery card
  3. Filter panel option list
  4. Sort/group panel option list
  5. Column settings option editor
  6. Select dropdown picker
  7. View summary statistics
  8. Attribute panel sidebar

Each is an independent XSS trigger point — one poisoned option poisons all eight locations simultaneously.


Affected Versions

SoftwareAffectedFixed
SiYuan< 3.7.43.7.4

Remediation

Patch

Update SiYuan to v3.7.4 or later. The fix sanitizes the color field value before storage and applies proper HTML entity encoding at all eight render sites, ensuring only valid CSS color values are accepted and rendered.

If Immediate Patching Is Not Possible

  1. Restrict database-editor access to trusted users only.
  2. Audit existing select options — inspect .sy files for color values containing ", ', or event handler keywords.
  3. Reset any suspicious options to standard color values (hex codes, named colors).

Detection

Finding Malicious Color Values

Search SiYuan's data/ directory for suspicious option color strings:

# Search .sy files for color values with unusual characters
grep -r '"color"' /path/to/siyuan/data/ | grep -E '["'"'"'<>]'

Look for option colors that contain anything other than:

  • CSS named colors (red, blue, green, etc.)
  • Hex codes (#FF0000)
  • RGB/HSL functions (rgb(255,0,0))

Key Takeaways

  1. CVSS 9.0 Critical — Stored XSS firing at 8 render sites from a single poisoned option
  2. Multiplied attack surface — one malicious option causes XSS across gallery, table, filter, sort, and settings views simultaneously
  3. Patch to SiYuan v3.7.4 immediately for any multi-user or networked installation
  4. Fourth in a cluster — CVE-2026-73042, -73044, -73046, and -73050 are all fixed in v3.7.4; treat as a mandatory group patch
  5. Color fields are an overlooked injection vector — any user-supplied string embedded in HTML attributes requires sanitization

References

  • NVD — CVE-2026-73050
  • SiYuan GitHub

Related Advisories

  • SiYuan Database Menu XSS — CVE-2026-73042
  • SiYuan Style Attribute XSS — CVE-2026-73044
  • SiYuan Auth Brute-Force — CVE-2026-73046
#CVE-2026-73050#SiYuan#XSS#Stored XSS#Vulnerability

Related Articles

SiYuan Stored XSS via Database Menu Metadata (CVE-2026-73042)

SiYuan before v3.7.4 fails to escape database menu metadata, enabling stored XSS in group, view, and field-edit menus. CVSS 9.0 Critical.

3 min read

SiYuan Column Width API Stored XSS (CVE-2026-73044)

SiYuan before v3.7.4 allows stored XSS via unescaped table column width values in style attributes. CVSS 9.0 Critical. Patch to v3.7.4.

3 min read

CVE-2026-44212: PrestaShop Stored XSS in Customer Service

A stored Cross-Site Scripting vulnerability (CVSS 9.3) in PrestaShop's back-office Customer Service view allows unauthenticated attackers to inject...

5 min read
Back to all Security Alerts