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-104475 Overview
CVE-2026-104475 is a stored cross-site scripting (XSS) vulnerability in IDURAR ERP CRM through version 4.1.1. The flaw allows authenticated users to upload unsanitized Scalable Vector Graphics (SVG) files containing embedded JavaScript. Attackers submit malicious SVGs through profile update or settings upload endpoints. When the application serves these files from the /public route, embedded scripts execute in victims' browsers under the application's origin.
The vulnerability is tracked under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Authenticated attackers can execute arbitrary JavaScript in other users' browser sessions, enabling session hijacking, credential theft, and unauthorized actions within the ERP/CRM application.
Affected Products
- IDURAR ERP CRM versions through 4.1.1
- The fileFilterMiddleware.js upload filter in the backend middleware
- Any deployment serving uploaded assets through the /public route
Discovery Timeline
- 2026-10-03 - CVE-2026-104475 published to the National Vulnerability Database (NVD)
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-104475
Vulnerability Analysis
IDURAR ERP CRM accepts user-uploaded files through authenticated endpoints such as profile avatar updates and settings uploads. The upload filter in fileFilterMiddleware.js permits SVG files without sanitizing their contents. SVG is an XML-based image format that natively supports <script> elements and event handlers such as onload.
Uploaded files are stored and served from the /public directory with the original MIME type. When a victim navigates to a page that renders or links to the SVG, the browser parses it as active content and executes embedded JavaScript in the application's origin. This gives the attacker access to session cookies, local storage tokens, and the authenticated user's permissions within the ERP/CRM.
Root Cause
The root cause is missing content sanitization for SVG uploads. The file-filter middleware validates file extensions and MIME types but does not strip scriptable XML elements or re-encode SVG as a safe raster image. Serving the raw file from /public with an image content type still allows browsers to execute scripts inside SVG documents loaded directly or via <object> and <iframe> tags.
Attack Vector
An authenticated low-privilege user crafts an SVG file containing a <script> tag or an event handler such as onload="...". The attacker submits the file through the profile update or settings upload endpoint. The server stores it under /public without transformation. The attacker then shares a direct link to the asset, or triggers other users to view a page that embeds it, causing the payload to execute in their browser context.
No verified public exploit code is published for CVE-2026-104475. Technical details are available in the VulnCheck advisory and GitHub Issue #1414.
Detection Methods for CVE-2026-104475
Indicators of Compromise
- SVG files in the application's /public upload directory containing <script> tags, javascript: URIs, or event handlers such as onload, onclick, or onerror
- Unexpected profile avatar or settings assets with the .svg extension uploaded by non-administrative accounts
- Outbound browser requests to attacker-controlled domains originating from authenticated ERP/CRM sessions
- Anomalous session reuse or API calls performed shortly after a user views an uploaded SVG asset
Detection Strategies
- Scan the uploads directory for SVG files and inspect XML content for scriptable elements and event-handler attributes
- Review web server access logs for GET requests to /public/*.svg paths followed by authenticated API activity from the same session
- Alert on POST requests to profile and settings upload endpoints that carry Content-Type: image/svg+xml
- Correlate upload events with downstream actions by other user accounts that viewed the uploaded resource
Monitoring Recommendations
- Enable file-integrity monitoring on the /public upload directory to flag new SVG writes
- Forward web application and reverse-proxy logs to a centralized analytics platform for queryable retention
- Monitor browser Content Security Policy (CSP) violation reports if a report-only policy is deployed during remediation
How to Mitigate CVE-2026-104475
Immediate Actions Required
- Reject SVG uploads in fileFilterMiddleware.js until a sanitization control is in place
- Audit the uploads directory and remove any SVG files containing script elements or event-handler attributes
- Rotate session tokens for users who may have viewed malicious SVG assets
- Restrict upload permissions to the minimum set of roles that require them
Patch Information
No vendor-released patch is referenced in the NVD entry for CVE-2026-104475 at publication time. Track the upstream fix through the IDURAR ERP CRM GitHub repository and Issue #1414. Review the VulnCheck advisory for the latest remediation guidance.
Workarounds
- Block the image/svg+xml MIME type and the .svg extension at the upload middleware and the reverse proxy
- Sanitize accepted SVG files server-side using a library such as DOMPurify in SVG mode before persisting them
- Serve uploaded assets with Content-Disposition: attachment and a restrictive Content-Security-Policy that disallows inline scripts
- Host user-uploaded content on a separate sandbox domain so script execution cannot access the main application's cookies and storage
# Example nginx configuration to force SVG downloads and apply CSP on the /public route
location /public/ {
add_header Content-Security-Policy "default-src 'none'; img-src 'self'; script-src 'none'; style-src 'none'; sandbox;" always;
add_header X-Content-Type-Options "nosniff" always;
location ~* \.svg$ {
add_header Content-Disposition "attachment" always;
default_type application/octet-stream;
}
}
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

