Medium

XWiki view file macro: User can view content of office file without view rights on the attachment

  • Disclosed: 18.11.2025
  • Updated: 11.10.2026 12:22

Summary

A user with no view rights on a page may see the content of an office attachment displayed with the view file macro.

Details

If on a public page is displayed an office attachment from a restricted page, a user with no view rights on the restricted page can view the attachment content, no matter the display type used.

PoC

  1. Install and activate the Pro Macros application
  2. Create a page and limit the view rights for a test user
  3. Add an attachment to the restricted page
  4. Create a new public page
  5. Add the view file macro and select the attachment from the restricted page using any display type
  6. Login as the test user with restricted view rights
  7. The user will see the content despite having no view rights

Workarounds

None

Impact

Private data can be leaked if a user knows the reference to an attachment and has edit rights on a page.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) com.xwiki.pro:xwiki-pro-macros-ui < 1.27.0 1.27.0

References

CVSS score 6.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
Weakness (CWE)
CWE-862
Platform
Java / Kotlin (Maven)
Package
com.xwiki.pro:xwiki-pro-macros-ui
Disclosed
18.11.2025
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-8c52-x9w7-vc95 - CC BY 4.0

Vulnerability history: com.xwiki.pro:xwiki-pro-macros-ui

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.