Contributor stored XSS via shortcode attributes
Published Dec 19, 2022 · Updated Apr 17, 2025
Cross-site scripting in Video.js HTML5 Player before 1.1.9 lets remote authenticated users with contributor access execute scripts through crafted shortcodes. The videojs_html5_video_embed_handler function emits shortcode attributes such as url, ogv, poster, and webm without sufficient sanitization or output escaping, allowing stored script payloads to persist in rendered pages. Exploitation requires contributor-level WordPress access and a victim to open an affected page; the documented impact is script execution in that victim's browser with resulting confidentiality and integrity effects.
Summary
What happened
Cross-site scripting in Video.js HTML5 Player before 1.1.9 lets remote authenticated users with contributor access execute scripts through crafted shortcodes. The videojs_html5_video_embed_handler function emits shortcode attributes such as url, ogv, poster, and webm without sufficient sanitization or output escaping, allowing stored script payloads to persist in rendered pages. Exploitation requires contributor-level WordPress access and a victim to open an affected page; the documented impact is script execution in that victim's browser with resulting confidentiality and integrity effects.
The record
- CVE
- CVE-2022-3985
- Published
- Dec 19, 2022
- Updated
- Apr 17, 2025
- Vendor
- WPHowTo
- Product
- Video.js HTML5 Player
- Classifications
- CWE-79, T1059.007
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 19, 2022CVE publishedPublication date reported by the CVE source.
- Apr 17, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <1.1.9
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo