S4E just found a medium-severity finding from vulnerable javascript library scanner
Platform
PlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Dec 3, 2026

CVE-2024-53504 Scanner

CVE-2024-53504 Scanner - SQL Injection (SQLi) vulnerability in SiYuan

How to fix it
Est. Time~10 seconds
Scan TypeGroup Scan
Targetsdomain, subdomain, ipv4
CostFree
0
Times Used
continuous scan runs
0
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
9.8
CVSScritical
Exploitable remotely over the internet · no authentication required.
Description

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
n/aby n/a
n/a
siyuanby siyuan
3.1.11
Updated Dec 3, 2026View on NVD →
Detail

The SiYuan software is widely used by users looking for an efficient note-taking platform. Developed with the intent of improving productivity, SiYuan supports various functionalities that allow users to organize their notes seamlessly. It's especially popular among students, educators, and professionals for its flexibility and integration capabilities with other tools. SiYuan's community values its user-friendly interface and constant updates that introduce new features. It has carved a niche in the productivity software sector with its advanced note management capabilities. By understanding its core audience, SiYuan continues to evolve, aligning with user needs to offer unparalleled note-taking dynamics.

The vulnerability identified within SiYuan allows malicious actors to inject arbitrary SQL commands through the '/searchHistory' endpoint. This SQL Injection flaw is caused by unsanitized input, particularly in the notebook parameter, which can be exploited remotely without needing user interaction or privileged access. Such vulnerabilities are critical, as they open pathways for attackers to manipulate, steal, or destroy database content. The ability to execute unauthorized SQL commands poses severe risks to data integrity and confidentiality. Addressing these vulnerabilities promptly is critical to ensuring the safety of user data and the operational security of the platform.

The SQL Injection vulnerability in SiYuan is triggered through a POST request to the '/api/history/searchHistory' endpoint. The notebook parameter, when manipulated, allows union-based SQL statements to be executed, potentially exposing the underlying database schema. Specifically, the input '%'' union SELECT sql FROM sqlite_schema -- -', when correctly placed, can lead to data extraction from the database. The request requires crafted input, making the vulnerability accessible to attackers aware of SQL injection techniques. This flaw highlights the importance of input validation and parameter sanitization. Ensuring that special characters are managed effectively could prevent such breaches.

Exploitation of this SQL Injection could result in severe data breaches, leading to data manipulation, theft, or deletion. Attackers might gain access to sensitive user information, which could compromise privacy and lead to financial losses or reputational damage. Additionally, unauthorized alterations to the database might disrupt service operations, resulting in data integrity issues and operational downtime. The business implications are significant, potentially affecting a company's credibility and customer trust. Immediate mitigation of the vulnerability is crucial to prevent these potential adverse outcomes.

REFERENCES

Solution Advice
  • Regularly update SiYuan to the latest version that patches known vulnerabilities.
  • Implement input validation to sanitize user inputs effectively, especially those interacting with SQL databases.
  • Configure database permissions to the least privilege model, ensuring sensitive data access is minimized.
  • Monitor application logs for suspicious activities that indicate potential SQL injection attempts.
  • Incorporate prepared statements or parameterized queries to limit SQL command injection capabilities.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

12,000+ scanners. Free to start. No credit card required.

Browse All Tools