CVE-2024-22725
Medium · 6.1CVSS
6.1
EPSS
0.4%
Published
Jan 24, 2024
CISA due date
—
Cloudanix analysis
A bug in the way the software reports errors lets attackers trick users into running harmful code in their browsers simply by clicking a crafted link.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Reflected cross-site scripting flaw in server error reporting allows untrusted input to be echoed back in responses without sanitization, enabling script execution in victims' browsers.
Why it matters to the business
Attackers can hijack user sessions or steal data through malicious links, leading to unauthorized access and potential compliance issues for organizations using the affected software.
How an attack unfolds
An attacker crafts a URL containing a script payload that triggers an error condition on the server; when a victim visits the link, the payload is reflected in the error page and executes in their browser context.
How to fix it
Upgrade to a fixed version of hackmdio/codimd (GIT) containing commit da511d0b1661e1f496e700bda35dc2b127dd456e. Implement input sanitization and output encoding on all error reporting paths as an interim control.
How to confirm the fix worked
Review release notes for the applied commit, retest error pages with known XSS test vectors to confirm payloads are no longer reflected, and verify HTTP responses contain appropriate security headers.
Typical attack path
- Identify error-reporting endpoint or parameter that reflects input
- Craft malicious URL embedding JavaScript payload designed to trigger error path
- Deliver link via phishing or other social engineering to authenticated or privileged users
- Victim interaction causes script to execute, performing actions such as session theft or content manipulation
How to detect it
Inspect web server access logs for unusual query parameters containing script tags or event handlers that coincide with error response codes; review browser console or proxy logs for unexpected script execution originating from error pages.
What your security team should do
- Apply the fixed commit immediately given the public disclosure date and persistent exposure window
- Scan public-facing instances for any custom error templates that may still reflect user input
- Educate users on recognizing suspicious links while the upgrade is deployed
The record
Orthanc versions before 1.12.2 are affected by a reflected cross-site scripting (XSS) vulnerability. The vulnerability was present in the server's error reporting.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | orthanc | 0 | No fix |
| Debian:12 | orthanc | 0 | No fix |
| Debian:13 | orthanc | 0 | 1.12.2+dfsg-1 |
| Ubuntu:16.04:LTS | orthanc | 0 | No fix |
| Ubuntu:18.04:LTS | orthanc | 0 | No fix |
| Ubuntu:20.04:LTS | orthanc | 0 | No fix |
| Ubuntu:22.04:LTS | orthanc | 0 | No fix |
| Ubuntu:24.04:LTS | orthanc | 0 | 1.12.2+dfsg-1 |
| Ubuntu:Pro:16.04:LTS | orthanc | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | orthanc | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | orthanc | 0 | No fix |
Related vulnerabilities
- CVE-2023-33466 Orthanc before 1.12.0 allows authenticated users with access to the Orthanc API to… Also affects orthanc
- CVE-2026-62990 Shopper is a Headless e-commerce Admin Panel. CWE-79
- CVE-2026-117645 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')… CWE-79
- CVE-2026-94175 Unauthenticated Cross Site Scripting (XSS) in All In One Login <= 2.4.1 versions. CWE-79
- CVE-2026-7004 WIT SynApps Runtime through 1.4.11 contains a pre-authentication reflected cross-site… CWE-79
- CVE-2026-54855 Unauthenticated Cross Site Scripting (XSS) in Profile Builder <= 4.0.5 versions. CWE-79
- CVE-2026-48201 Unauthenticated Cross Site Scripting (XSS) in Fast Velocity Minify <= 3.5.7 versions. CWE-79
- CVE-2026-39739 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')… CWE-79