CVE-2025-59788 nextcloud · nextcloud server

nextcloud server Cross-Site Scripting Vulnerability

Vulnerability at a glance

Severity, exploitation likelihood & attack requirements

CVSS v3.1 severity
5.4Medium
EPSS · exploitation likelihood
0.302% Probability within 30 daysPercentile 21.7
EPSS trend
Unchanged Since 2026-10-19
Known exploitation
Not in KEV CISA KEV catalog Absence does not establish safety
Attack vector
NetworkRemotely reachable
Attack complexity
LowFewer obstacles to exploitation
Privileges required
LowBasic privileges required
User interaction
RequiredUser action required
Exploit availability & maturity
Not scored Exploit reference available No explicit exploit maturity assessment View exploit evidence
How to read the colors & trend
Higher exposureElevatedModerateLower exposureUnknown / unassessed

CVSS colors follow its reported severity. Attack-factor colors describe each requirement, not an overall risk rating. Gray also covers absence from KEV; absence does not establish safety.

EPSS display bands: below 1% blue, 1–10% amber, 10–50% orange, 50% and above red. These are presentation bands, not FIRST severity categories. The trend compares daily EPSS probabilities, not percentile ranks; “pp” means percentage points. The sparkline shows relative movement, with its vertical scale fitted to the observed scores.

Already protected by existing Atomicorp rules No new CVE-specific rule required.

Atomicorp ModSecurity protection

Protected by Atomicorp rules

Atomicorp ModSecurity rules block attacks exploiting this vulnerability when blocking is enabled. Keep your rules current.

By targeting underlying attack techniques and CWE weakness classes, existing rules can protect against newly disclosed vulnerabilities. Rule changes are regression-tested against attack and false-positive corpora.

12 rules identified Verified 2026-10-19 View rules & research details →

WAF protection applies to the tested attack paths; it does not change the CVSS or EPSS score. Keep your software patched and your Atomicorp rules current.

CISA SSVC assessment

CISA ADP · Assessed 2025-12-05 · SSVC 2.0.3

Exploitation
Proof-of-concept
Automatable
No
Technical Impact
Partial

Stakeholder-Specific Vulnerability Categorization records CISA’s assessment of exploitation, automation, and technical impact. “None reported” reflects the assessment date; it does not establish that no exploit exists. View SSVC source details.

On this page

CVE Details

Technical vulnerability details · CVSS assessments, exploit evidence & CPE data

CVSS assessments

CVSS v3.1 · cve@mitre.org

  • Base score: 6.4
  • Base severity: MEDIUM
  • Exploitability subscore: 3.1
  • Impact subscore: 2.7
  • Assessment type: Secondary
  • Source identifier: cve@mitre.org
  • Full vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
    • Attack vector: Network
    • Attack complexity: Low
    • Privileges required: Low
    • User interaction: None
    • Scope: Changed
    • Confidentiality impact: Low
    • Integrity impact: Low
    • Availability impact: None
  • Exploit maturity: Not scored

CVSS v3.1 · NVD

  • Base score: 5.4
  • Base severity: MEDIUM
  • Exploitability subscore: 2.3
  • Impact subscore: 2.7
  • Assessment type: Primary
  • Source identifier: nvd@nist.gov
  • Full vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    • Attack vector: Network
    • Attack complexity: Low
    • Privileges required: Low
    • User interaction: Required
    • Scope: Changed
    • Confidentiality impact: Low
    • Integrity impact: Low
    • Availability impact: None
  • Exploit maturity: Not scored

Exploitability and impact subscores describe the vulnerability’s technical characteristics. Exploit maturity describes the reported state of exploitation; these are separate measures.

Assessment source: NVD record (opens in a new tab) · CVE record (opens in a new tab)

CISA SSVC assessments

These are CISA’s published decision points at the assessment time. They are not a complete organization-specific prioritization decision.

  • Provider: CISA ADP
  • Provider identifier: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  • SSVC version: 2.0.3
  • Role: CISA Coordinator
  • Assessment timestamp: 2025-12-05T17:20:13.836811Z
  • Exploitation: poc
  • Automatable: no
  • Technical Impact: partial
  • Source: CISA ADP in the CVE record (opens in a new tab)

Exploit references

The CVE source data tags these references as exploits. A reference alone does not establish reliability or active exploitation.

Vulnerable CPE configurations

  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*
    • Version start (inclusive): 30.0.0
    • Version end (exclusive): 30.0.17
    • NVD match criteria ID: 8A3D94EC-A877-458D-9A33-5451FE97A785
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*
    • Version start (inclusive): 31.0.0
    • Version end (exclusive): 31.0.10
    • NVD match criteria ID: 2059C891-F256-482A-99BF-D912A1657419
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*
    • Version start (inclusive): 32.0.0
    • Version end (exclusive): 32.0.1
    • NVD match criteria ID: A75D466C-B154-480A-9D4F-8E9454147156
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 22.0.0
    • Version end (exclusive): 22.2.10.33
    • NVD match criteria ID: 4440D2E7-2FCB-4CC2-A57F-708AAB0CD22B
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 23.0.0
    • Version end (exclusive): 23.0.12.29
    • NVD match criteria ID: 51922DA7-3112-422A-9F66-9CAA54E89D8F
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 24.0.0
    • Version end (exclusive): 24.0.12.28
    • NVD match criteria ID: 6AC7C575-7348-45A1-9023-A6606541987B
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 25.0.0
    • Version end (exclusive): 25.0.13.23
    • NVD match criteria ID: 000C64D7-C76D-4E69-9705-18132C615456
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 26.0.0
    • Version end (exclusive): 26.0.13.20
    • NVD match criteria ID: D9491A91-2A7C-4C84-89E9-219422D91350
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 27.0.0
    • Version end (exclusive): 27.1.11.20
    • NVD match criteria ID: CFD3A15F-58D7-4C3D-A49F-065F28ED6361
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 28.0.0
    • Version end (exclusive): 28.0.14.11
    • NVD match criteria ID: B55EF258-E98A-43A9-B73C-AE62D448421D
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 29.0.0
    • Version end (exclusive): 29.0.16.8
    • NVD match criteria ID: 7710228F-2984-4F9A-8360-0054E7E78687
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 30.0.0
    • Version end (exclusive): 30.0.17
    • NVD match criteria ID: AE19F75F-6A78-4770-B7C6-338570FA7184
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 31.0.0
    • Version end (exclusive): 31.0.10
    • NVD match criteria ID: 64C21E45-22B8-49B2-B630-30448D89A4E9
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*
    • Version start (inclusive): 32.0.0
    • Version end (exclusive): 32.0.1
    • NVD match criteria ID: CFA5AD5D-1145-44D6-ABE3-64837C74975F

Vulnerability Description

Cross-site scripting (XSS) vulnerability in a reachable files_pdfviewer example directory in Nextcloud with versions before 22.2.10.33, 23.0.12.29, 24.0.12.28, 25.0.13.23, 26.0.13.20, 27.1.11.20, 28.0.14.11, 29.0.16.8, 30.0.17, 31.0.10, and 32.0.1 allows attackers to execute arbitrary JavaScript in the context of a user’s browser via a crafted PDF file to viewer.html. This issue is related to CVE-2024-4367, but the root cause of this Nextcloud issue is that the product exposes executable example code on a same-origin basis.

  1. Maintain the observed Atomicorp protections. Keep your Atomicorp commercial rules current and confirm that the selected observed rules (333140 , 333141 , 340099 , 340147 , 340148 , 341099 , 341256 , 341266 , 342259 , 346755 , 350147 , 350148 ) have not been locally disabled. Atomicorp commercial rules are enabled by default. If you use Atomic WAF, review the applicable policy and rule settings.

  2. Apply the vendor’s remediation. WAF protection is defense in depth and does not replace upgrading or following the affected vendor’s guidance.

    • Affected versions: Nextcloud versions earlier than 22.2.10.33.
    • Affected versions: Nextcloud versions earlier than 23.0.12.29.
    • Affected versions: Nextcloud versions earlier than 24.0.12.28.
    • Affected versions: Nextcloud versions earlier than 25.0.13.23.
    • Affected versions: Nextcloud versions earlier than 26.0.13.20.
    • Affected versions: Nextcloud versions earlier than 27.1.11.20.
    • Affected versions: Nextcloud versions earlier than 28.0.14.11.
    • Affected versions: Nextcloud versions earlier than 29.0.16.8.
    • Affected versions: Nextcloud versions earlier than 30.0.17.
    • Affected versions: Nextcloud versions earlier than 31.0.10.
    • Affected versions: Nextcloud versions earlier than 32.0.1.
    • Recommended upgrade: Upgrade Nextcloud to 22.2.10.33 or later.
    • Recommended upgrade: Upgrade Nextcloud to 23.0.12.29 or later.
    • Recommended upgrade: Upgrade Nextcloud to 24.0.12.28 or later.
    • Recommended upgrade: Upgrade Nextcloud to 25.0.13.23 or later.
    • Recommended upgrade: Upgrade Nextcloud to 26.0.13.20 or later.
    • Recommended upgrade: Upgrade Nextcloud to 27.1.11.20 or later.
    • Recommended upgrade: Upgrade Nextcloud to 28.0.14.11 or later.
    • Recommended upgrade: Upgrade Nextcloud to 29.0.16.8 or later.
    • Recommended upgrade: Upgrade Nextcloud to 30.0.17 or later.
    • Recommended upgrade: Upgrade Nextcloud to 31.0.10 or later.
    • Recommended upgrade: Upgrade Nextcloud to 32.0.1 or later.
    • The CVE record does not include written upgrade or workaround instructions, but it does publish the following patch or mitigation reference:
  3. Validate after changes. Confirm rule updates are current, review WAF events for the affected application, and test application behavior after vendor upgrades, mitigations, or local policy changes.

Research Notes

Atomicorp WAF protections are designed around attack techniques and exploit behaviors, allowing existing protections to apply across multiple vulnerabilities without requiring a unique rule for every CVE.

Public Vulnerability References

Test or Research Source

  • Source: Atomicorp AI Research Framework
  • Tags: cve, derived, waf-probe, xss

Research Note Context

This research note documents exploit-technique analysis associated with this vulnerability and references Atomicorp WAF protections observed during engineering review, testing, or validation activities.

Atomicorp security controls are generally designed to identify and mitigate attack techniques and exploit behaviors rather than individual CVE identifiers. As a result, protections developed for one vulnerability may also apply to related attack variants and future vulnerabilities using similar techniques.

Learn More

Atomicorp develops commercially supported security technologies for web applications, servers, endpoints, workloads, and legacy enterprise platforms.

Organizations interested in protecting systems against exploit techniques associated with vulnerabilities such as this one can learn more about:

  • Atomic ModSecurity Rules: commercially maintained WAF rules for ModSecurity deployments, including protections for web attacks, bots, scanners, malware, exploitation attempts, and emerging vulnerability classes.
  • Atomic WAF: an enterprise web application firewall with Atomicorp rules, centralized management, reporting, authentication controls, and operational tooling.
  • Atomic ModSecurity Integrator: a special licensing option for MSPs, MSSPs, OEMs, VARs, reverse proxy providers, and other integrators who want to incorporate Atomicorp ModSecurity rule technology into their own products or services.
  • Atomic OSSEC: an enterprise OSSEC-based intrusion detection, compliance, and security monitoring platform.
  • Atomic Protector: workload protection for Linux, web, cloud, data center, and hybrid environments.

For additional information, product evaluations, or technical discussions, visit https://www.atomicorp.com/ or https://modsecurity.io/ (opens in a new tab) .