Skip to main content
Vulnerability Database/CVE-2025-40702

CVE-2025-40702: Craws Openatlas XSS Vulnerability

CVE-2025-40702 is a cross-site scripting flaw in Craws Openatlas v8.9.0 that enables attackers to steal session cookies through malicious queries. This post covers technical details, affected versions, and mitigation steps.

Published:

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-2025-40702 Overview

CVE-2025-40702 is a stored Cross-Site Scripting (XSS) vulnerability affecting OpenAtlas version 8.9.0, developed by the Austrian Centre for Digital Humanities and Cultural Heritage (ACDH-CH). The flaw originates from inadequate validation of user-supplied input in the /insert/file endpoint, specifically in the creator and license_holder parameters. An authenticated attacker can inject malicious JavaScript via a crafted POST request. When a victim user renders the affected page, the payload executes in their browser context, enabling session cookie theft and account takeover.

Critical Impact

Authenticated attackers can inject persistent JavaScript into OpenAtlas 8.9.0 through the /insert/file endpoint, hijacking victim sessions and compromising research data integrity.

Affected Products

  • OpenAtlas 8.9.0 (ACDH-CH / craws)
  • Deployments using the /insert/file endpoint
  • Instances where the creator and license_holder fields are rendered to other users

Discovery Timeline

  • 2025-08-29 - CVE-2025-40702 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-40702

Vulnerability Analysis

The vulnerability is classified as [CWE-79], Improper Neutralization of Input During Web Page Generation. OpenAtlas accepts user-supplied values in file insertion forms and stores them without sufficient sanitization or output encoding. When those values are rendered back to any authenticated viewer, embedded script content executes with that viewer's privileges.

Because the payload is persisted server-side, exploitation does not require ongoing attacker interaction. A single malicious submission can affect every user who later views the record, which makes administrators and curators the most valuable targets. Successful exploitation yields session cookies, enables actions on behalf of the victim, and can facilitate pivoting to higher-privileged workflows within the platform.

Root Cause

The application fails to apply contextual output encoding to the creator and license_holder parameters submitted via the /insert/file POST handler. Input validation does not strip or escape HTML and JavaScript syntax before persistence or rendering. The absence of a strict Content Security Policy compounds the issue by allowing inline script execution.

Attack Vector

Exploitation requires low-privileged authenticated access to the OpenAtlas instance and user interaction from a victim who views the poisoned record. The attacker submits a POST request to /insert/file, placing a JavaScript payload inside the creator or license_holder field. The value is stored in the backing database and served to subsequent visitors, where the payload runs in the Document Object Model (DOM) and exfiltrates document.cookie or performs authenticated requests. Refer to the INCIBE CERT Security Notice on XSS for additional advisory context.

Detection Methods for CVE-2025-40702

Indicators of Compromise

  • POST requests to /insert/file containing HTML tags, <script>, onerror=, or javascript: sequences in the creator or license_holder parameters.
  • Outbound HTTP requests from authenticated user sessions to attacker-controlled domains carrying document.cookie values.
  • Unexpected modifications to file metadata records attributed to low-privilege accounts.

Detection Strategies

  • Inspect web server and application logs for POST bodies to /insert/file containing suspicious markup or encoded script characters.
  • Deploy Web Application Firewall (WAF) rules that flag reflected or stored XSS patterns targeting the vulnerable parameters.
  • Baseline normal values for creator and license_holder fields and alert on entries containing non-printable or markup characters.

Monitoring Recommendations

  • Correlate authentication events with abnormal POST activity against OpenAtlas insert endpoints.
  • Monitor browser-side telemetry for script execution from the OpenAtlas origin invoking cross-origin requests.
  • Track session identifier reuse across geographically or network-distinct source addresses.

How to Mitigate CVE-2025-40702

Immediate Actions Required

  • Restrict access to the OpenAtlas 8.9.0 administrative and content-insertion workflows to trusted accounts until a fix is applied.
  • Review and sanitize existing records populated through /insert/file, removing any stored HTML or script content from the creator and license_holder fields.
  • Rotate session secrets and force reauthentication for all users to invalidate any cookies potentially harvested through exploitation.

Patch Information

No vendor-confirmed patched version is listed in the NVD data at the time of writing. Monitor the GitHub OpenAtlas Repository for updated releases addressing CVE-2025-40702 and apply any security fixes promptly.

Workarounds

  • Place OpenAtlas behind a reverse proxy enforcing a strict Content Security Policy that blocks inline scripts and restricts script sources.
  • Enable WAF signatures that reject POST bodies containing <script>, onerror, onload, or javascript: patterns in the vulnerable parameters.
  • Apply server-side input validation that rejects any non-alphanumeric characters beyond a documented allowlist for creator and license_holder.
bash
# Example nginx reverse-proxy header enforcing a restrictive CSP
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY" always;

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.