Description
The Ocean Extra plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ocean_gallery_id’ parameter in all versions up to, and including, 2.4.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The Classic Editor plugin must be installed and activated to exploit the vulnerability.
Published: 2025-04-22
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored XSS via ocean_gallery_id that allows authenticated users to inject scripts
Action: Patch
AI Analysis

Impact

The Ocean Extra plugin for WordPress is vulnerable to Stored Cross‑Site Scripting (CWE‑79) via the ocean_gallery_id parameter in all versions up to and including 2.4.6. Authenticated users with Contributor level or higher can inject arbitrary JavaScript that will run when a page containing the injected gallery is viewed. Because the scripts are stored in the database, all site visitors who load the injected gallery will execute the malicious code, potentially allowing data theft, session hijacking or defacement. The vulnerability requires the Classic Editor plugin to be installed and activated to function.

Affected Systems

WordPress sites running the Ocean Extra plugin version 2.4.6 or earlier are affected. The issue exists in all builds of the plugin up to that version, and the Classic Editor plugin must also be present. Updates beyond 2.4.6 remove the flaw, so the vulnerability does not apply to later releases.

Risk and Exploitability

The CVSS base score of 6.4 indicates a medium severity vulnerability, while the EPSS score of less than 1% suggests a low likelihood of real‑world exploitation at this time. The vulnerability is not listed in the CISA KEV catalog. An attacker needs Contributor or higher rights and enabled Classic Editor plugin, so the risk is confined to sites with permissive contributor roles. If those conditions are met, the attacker could inject malicious scripts that run for any site visitor, leading to cross‑site data theft or defacement.

Generated by OpenCVE AI on April 21, 2026 at 21:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Ocean Extra plugin to the latest version that removes the vulnerability (any release newer than 2.4.6).
  • If an update is not immediately possible, uninstall or disable the Classic Editor plugin so attackers cannot edit gallery metadata through the vulnerable code path.
  • Review WordPress user roles and restrict Contributor and higher permissions to trusted users only; disable or limit gallery editing for contributors if not needed.

Generated by OpenCVE AI on April 21, 2026 at 21:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-12295 The Ocean Extra plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ocean_gallery_id’ parameter in all versions up to, and including, 2.4.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The Classic Editor plugin must be installed and activated to exploit the vulnerability.
History

Wed, 30 Apr 2025 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Oceanwp
Oceanwp ocean Extra
CPEs cpe:2.3:a:oceanwp:ocean_extra:*:*:*:*:*:wordpress:*:*
Vendors & Products Oceanwp
Oceanwp ocean Extra

Tue, 22 Apr 2025 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 22 Apr 2025 11:30:00 +0000

Type Values Removed Values Added
Description The Ocean Extra plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ocean_gallery_id’ parameter in all versions up to, and including, 2.4.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The Classic Editor plugin must be installed and activated to exploit the vulnerability.
Title Ocean Extra <= 2.4.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'ocean_gallery_id'
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Oceanwp Ocean Extra
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:01:21.805Z

Reserved: 2025-04-08T22:36:29.084Z

Link: CVE-2025-3458

cve-icon Vulnrichment

Updated: 2025-04-22T13:22:42.609Z

cve-icon NVD

Status : Analyzed

Published: 2025-04-22T12:15:16.507

Modified: 2025-04-30T14:05:12.373

Link: CVE-2025-3458

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-21T21:15:45Z

Weaknesses