CVE-2025-50738
BaseFortify
Publication date: 2025-07-29
Last updated on: 2025-08-22
Assigner: MITRE
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| usememos | memos | to 0.24.3 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-200 | The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The vulnerability in the Memos application (up to version 0.24.3) allows attackers to embed markdown images with arbitrary URLs. When a user views a memo containing such an image, their browser automatically fetches the image URL without explicit consent, exposing the user's IP address, browser User-Agent, and other request details to the attacker. Additionally, there is a stored Cross-Site Scripting (XSS) vulnerability via uploading SVG files containing malicious JavaScript, which executes when the SVG's direct URL is accessed, potentially enabling session theft or unauthorized client-side actions. [1]
How can this vulnerability impact me? :
This vulnerability can lead to information disclosure by revealing the viewing user's IP address, browser User-Agent, and other request-specific information to an attacker-controlled server. The stored XSS aspect can allow attackers to execute malicious scripts in the context of the application domain, potentially leading to session theft, unauthorized client-side requests, and user tracking. Overall, it poses a high risk to confidentiality, integrity, and availability of user data and sessions. [1]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by checking for the presence of uploaded SVG files containing embedded JavaScript code, such as `onload` event handlers that execute scripts. One way to detect exploitation attempts is to monitor access logs for requests to SVG files with suspicious parameters or unusual activity. Additionally, you can manually inspect uploaded SVG files for embedded scripts. For example, using command-line tools like `grep` to search for script tags or event handlers in SVG files: `grep -iE '<script|onload|javascript:' /path/to/uploaded/svg/files/*.svg`. Network monitoring tools can also be used to detect outbound requests triggered by viewing memos containing malicious images. [1]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include parsing and sanitizing uploaded SVG files on the client side using JavaScript to prevent execution of embedded scripts. Additionally, restrict or disable the upload of SVG files if possible, or implement server-side validation and sanitization to remove any embedded JavaScript code. Monitoring and restricting direct access to uploaded SVG files can also help reduce risk. Applying updates or patches from the Memos application developers addressing this vulnerability is recommended once available. [1]