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-59665 Overview
CVE-2026-59665 is a stored Cross-Site Scripting (XSS) vulnerability in the Repasat application. The flaw exists in the nomMotivo parameter processed by the /es/lostmotives/store endpoint. An authenticated attacker can inject arbitrary JavaScript that executes in the browser of any user who views the affected content. INCIBE published a notice describing this and other issues in the Repasat application.
Critical Impact
Successful exploitation allows an attacker to execute arbitrary script code in a victim's browser session, enabling session data theft, UI manipulation, and actions on behalf of the authenticated user.
Affected Products
- Repasat application (vendor-published version information not available in the NVD record)
Discovery Timeline
- 2026-10-02 - CVE-2026-59665 published to NVD
- 2026-10-02 - Last updated in NVD database
Technical Details for CVE-2026-59665
Vulnerability Analysis
The vulnerability is a stored Cross-Site Scripting flaw classified under [CWE-79] (Improper Neutralization of Input During Web Page Generation). The Repasat application accepts user-supplied input through the nomMotivo form parameter sent to the /es/lostmotives/store endpoint. The application fails to sanitize or encode this value before rendering it back in server responses.
An attacker with low-privilege authenticated access can submit a crafted payload that is persisted by the backend. When a legitimate user, including administrators, loads the page containing the stored value, the injected script executes in their browser context. The CVSS 4.0 vector indicates that user interaction is required to trigger the payload.
Root Cause
The root cause is missing output encoding and insufficient input validation on the nomMotivo field. The application treats user-controlled data as trusted markup when rendering it to the DOM. Without context-aware escaping, HTML and JavaScript syntax passes directly into the response body.
Attack Vector
Exploitation requires network access to the application and valid low-privilege credentials. The attacker submits a POST request to /es/lostmotives/store containing a JavaScript payload in the nomMotivo parameter. The payload persists in the application database and executes whenever any user renders the affected view.
// No verified exploit code is published for CVE-2026-59665.
// See the INCIBE advisory for technical details.
Detection Methods for CVE-2026-59665
Indicators of Compromise
- HTTP POST requests to /es/lostmotives/store containing script tags, event handlers, or JavaScript URI schemes in the nomMotivo parameter.
- Database records in the lost motives table containing HTML or JavaScript markup within the nomMotivo field.
- Browser-side errors or anomalous outbound requests originating from pages that display stored lost-motive entries.
Detection Strategies
- Inspect web server and WAF logs for payloads matching patterns such as <script, onerror=, onload=, and javascript: in requests to the vulnerable endpoint.
- Review stored application data for persisted HTML or script fragments in user-controlled text fields.
- Correlate authenticated user sessions with suspicious outbound requests to attacker-controlled domains following the loading of lost-motive pages.
Monitoring Recommendations
- Enable detailed HTTP request logging on the /es/lostmotives/store endpoint and alert on payloads containing HTML control characters.
- Monitor Content Security Policy (CSP) violation reports if CSP headers are deployed, as blocked inline scripts can indicate attempted exploitation.
- Track account activity for low-privilege users submitting repeated or unusual payloads to form-handling endpoints.
How to Mitigate CVE-2026-59665
Immediate Actions Required
- Apply updates from the Repasat vendor as described in the INCIBE Notice on Multiple Vulnerabilities in the Repasat Application.
- Restrict access to the Repasat application to trusted networks until a patched version is deployed.
- Audit existing records in the lost motives data store and remove or sanitize any entries containing HTML or script content.
Patch Information
Refer to the INCIBE Notice on Multiple Vulnerabilities in the Repasat Application for vendor remediation guidance. No fixed version string is published in the NVD record at the time of writing.
Workarounds
- Deploy a Web Application Firewall rule to block requests to /es/lostmotives/store containing script syntax or HTML tags in the nomMotivo parameter.
- Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins.
- Require administrators to review newly submitted lost-motive entries before they are rendered to other users.
# Example WAF rule concept (ModSecurity-style)
SecRule ARGS:nomMotivo "@rx (?i)(<script|onerror=|onload=|javascript:)" \
"id:1026059665,phase:2,deny,status:403,msg:'Blocked XSS payload in nomMotivo (CVE-2026-59665)'"
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

