Skip to content

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

Moderate
ChiuchiuSorin published GHSA-8c52-x9w7-vc95 Nov 18, 2025

Package

maven com.xwiki.pro:xwiki-pro-macros-ui (Maven)

Affected versions

<=1.26.20

Patched versions

1.27.0

Description

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.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N

CVE ID

CVE-2025-65089

Weaknesses

No CWEs