CVE-2026-4335
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe ShortPixel Image Optimizer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the attachment post_title in all versions up to, and including, 6.4.3. This is due to insufficient output escaping in the getEditorPopup() function and its corresponding media-popup.php template. Specifically, the attachment's post_title is retrieved from the database via get_post() in AjaxController.php (line 435) and passed directly to the view template (line 449), where it is rendered into an HTML input element's value attribute without esc_attr() escaping (media-popup.php line 139). Since WordPress allows Authors to set arbitrary attachment titles (including double-quote characters) via the REST API, a malicious author can craft an attachment title that breaks out of the HTML attribute and injects arbitrary JavaScript event handlers. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts that execute whenever a higher-privileged user (such as an administrator) opens the ShortPixel AI editor popup (Background Removal or Image Upscale) for the poisoned attachment.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe ShortPixel Image Optimizer WordPress plugin fails to escape the attachment post_title when rendering it in the AI editor popup. An authenticated Author-level user can set a malicious title containing quote characters via the REST API, breaking out of the HTML input value attribute and injecting arbitrary JavaScript event handlers. When an administrator opens the ShortPixel AI editor popup (Background Removal or Image Upscale) for this poisoned attachment, the injected script executes.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Confirm ShortPixel Image Optimizer is installedIn WordPress admin, go to Plugins > Installed Plugins and locate ShortPixel Image Optimizer. Note whether it is active.Affected if The plugin is installed and active.
-
Check the installed plugin versionClick on the plugin name to view details, or inspect the plugin header in /wp-content/plugins/shortpixel-image-optimiser/shortpixel.php to find the Version field.Affected if The version is earlier than 6.4.4 (the fixed version).
-
Verify AI editor access for lower-privileged usersConfirm that Author-level users have REST API access to create or modify attachments. Check if users with Author role can access /wp-json/shortpixel/v1/ or similar AI editor endpoints.Affected if Authors can access the REST API and create/modify attachments.
-
Inspect attachment post_titles for injection payloadsQuery the wp_posts table for posts with post_type=attachment and examine post_title values. Look for titles containing quote characters (" or '), onload=, onerror=, javascript:, or other JavaScript event handlers.Affected if Any attachment has a post_title containing unescaped quote characters or JavaScript event handler patterns.
-
Check if administrator has opened the AI editorReview access logs or server logs for requests to the ShortPixel AI editor popup (typically triggered when viewing an image in the ShortPixel interface for Background Removal or Image Upscale).Affected if An administrator has opened the AI editor for an attachment with a malicious post_title.
The environment is affected if ShortPixel Image Optimizer version is below 6.4.4 and a lower-privileged user can inject a malicious post_title that gets rendered unescaped when an administrator opens the AI editor.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate ShortPixel Image Optimizer to version 6.4.4 or later which properly escapes the post_title with esc_attr(). If immediate update is not possible, restrict Author-level REST API access or disable the plugin until patched.
ShortPixel Image Optimizer version 6.4.4 or later
- 1. Log in to the WordPress admin dashboard with Administrator privileges
- 2. Navigate to Plugins > Installed Plugins
- 3. Locate ShortPixel Image Optimizer in the plugin list
- 4. Check the current version number to confirm it is 6.4.3 or earlier
- 5. If an update is available, click 'Update Now' to upgrade to the latest version (6.4.4 or later)
- 6. Alternatively, go to Plugins > Add New > Upload Plugin and upload the latest version from wordpress.org/plugins/shortpixel-image-optimiser/
- 7. After updating, verify the plugin version shows 6.4.4 or higher in the Plugins list
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,984.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-4335 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-4335 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data