# CVE-2024-52300: macro-pdfviewer has a XSS through the width parameter

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2024-11-13T15:24:59.125Z
- Modified: 2026-06-17T08:06:58.127Z
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

macro-pdfviewer is a PDF Viewer Macro for XWiki using Mozilla pdf.js. The width parameter of the PDF viewer macro isn't properly escaped, allowing XSS for any user who can edit a page. XSS can impact the confidentiality, integrity and availability of the whole XWiki installation when an admin visits the page with the malicious code. This is fixed in 2.5.6.

(As written by CVE List.)

## Affected

- xwikisas macro-pdfviewer: < 2.5.6
- xwikisas macro_pdfviewer: before 2.5.6
- xwiki pdf_viewer_macro: before 2.5.6

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/xwikisas/macro-pdfviewer/security/advisories/GHSA-84wx-6vfp-5m6g> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-52300](https://www.cve.org/CVERecord?id=CVE-2024-52300), CVE Terms of Use, modified 2024-11-13
- NVD: [CVE-2024-52300](https://nvd.nist.gov/vuln/detail/CVE-2024-52300), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-52300 · Whole record: https://cve.day/CVE-2024-52300.json · Rebuilt by cve.day 2026-11-25T22:58:48.200Z
