CVE-2024-52300CWE-80

macro-pdfviewer has a XSS through the width parameter

Critical · published November 13, 2024

CVSS v3.1
9.1
EPSS
0%
Percentile
38.9
In the wild
Unconfirmed
What it is

🚨 A sneaky XSS vulnerability in the XWiki PDF viewer could let any page editor sneak in malicious code — yikes! 🔥 Think of it like a restaurant where any chef can slip a secret ingredient into the dish — a pinch of poison could ruin the whole meal if an unsuspecting diner takes a bite! If an admin visits a page with this malicious code, the consequences could be absolutely devastating: an attacker could potentially manipulate or steal sensitive data, compromise the entire installation, and wreak havoc on your XWiki environment. It's a full-blown security breach waiting to happen!

Put simply

Think of it like a restaurant where any chef can slip a secret ingredient into the dish — a pinch of poison could ruin the whole meal if an unsuspecting diner takes a bite! This vulnerability arises because the width parameter in the PDF viewer macro isn't properly escaped, allowing cross-site scripting (XSS) when a user with editing rights submits malicious input.

What to do

If an admin visits a page with this malicious code, the consequences could be absolutely devastating: an attacker could potentially manipulate or steal sensitive data, compromise the entire installation, and wreak havoc on your XWiki environment. It's a full-blown security breach waiting to happen! Patch your XWiki to version 2.5.6 immediately to close this gap! Additionally, limit edit permissions, and review your user roles to ensure only trusted individuals can modify pages. You've got this! Follow these steps, and you'll be locking down your XWiki in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00460 · 38.9th percentile
Weakness
CWE-80 · Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Published
2024-11-13T15:24Z
EPSS history
Timeline
  • 13 NOV 15:24Z
    macro-pdfviewer has a XSS through the width parameter
    cvelistv5