CVE-2023-54351: WordPress Sonaar Music Plugin 4.7 Stored XSS via Comments

Published Jun 8, 2026
·
Updated

WordPress Sonaar Music Plugin 4.7 contains a stored cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious scripts through the comment functionality. Attackers can submit JavaScript payloads in the comment parameter to wp-comments-post.php which are stored and executed in the browsers of users viewing the affected playlist pages.

Affected Software

1 affected component
Sonaar Sonaar Music Plugin=4.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove wordpress/sonaar-music-plugin from your environment.

    Uninstall or deactivate the Sonaar Music Plugin (v4.7) if it is not required to eliminate the vulnerable code path accepting comment input.

  2. Configuration

    Disable or close comments on the WordPress site to prevent unauthenticated comment submissions to wp-comments-post.php.

    WordPress comments_enabled = false
  3. Configuration

    Enable comment moderation (require admin approval) so submitted comments are not published automatically.

    WordPress comment_moderation = true
  4. Compensating control

    Apply a web application firewall (WAF) rule or other input-filtering control to block or sanitize script payloads in the comment parameter sent to wp-comments-post.php, or restrict access to wp-comments-post.php to authenticated/trusted IPs.

  5. Operational

    Search the site database (e.g., wp_comments) and affected playlist pages for stored comments containing injected JavaScript; remove or sanitize any malicious entries and verify pages no longer execute the payloads.

Event History

Jun 8, 2026
CVE Published
via MITRE·01:55 AM
Data Sourced
via MITRE·01:55 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2023-54351?

CVE-2023-54351 has a severity rating of high with a score of 7.2.

2

How do I fix CVE-2023-54351?

To fix CVE-2023-54351, update the Sonaar Music Plugin to the latest version that addresses the stored XSS vulnerability.

3

What can attackers do with CVE-2023-54351?

Attackers can exploit CVE-2023-54351 to inject and execute malicious JavaScript through the comment functionality.

4

Which version of the Sonaar Music Plugin is affected by CVE-2023-54351?

CVE-2023-54351 affects version 4.7 of the Sonaar Music Plugin.

5

Is authentication required to exploit CVE-2023-54351?

No, CVE-2023-54351 can be exploited by unauthenticated attackers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203