Webmention <= 5.10.1 - Unauthenticated Stored Cross-Site Scripting via Open Graph og:title Meta Tag
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
The Webmention plugin for WordPress, in versions up to and including 5.10.1, is affected. An unauthenticated attacker can submit a crafted page whose Open Graph title injects malicious scripts that are saved as comment content and can run in the browsers of visitors to the affected site once an administrator approves the comment.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
The Webmention plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Open Graph og:title meta tag of a webmention source URL in versions up to, and including, 5.10.1. This is due to insufficient input sanitization: Meta::add_properties() maps og:title to the Item::name property, but Item has no concrete set_name() method, so Item::__call() stores the value raw while sibling set_content()/set_summary() paths route through webmention_sanitize_html(); Item::get_content() then falls back to the raw name when content and summary are empty, and Receiver::process() explicitly removes the core wp_filter_kses / wp_filter_post_kses hooks on pre_comment_content before calling wp_new_comment(), so the payload is persisted to comment_content as-is. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, after an administrator approves the resulting pending webmention comment. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- pfefferle Webmention
through 5.10.1
References 8
plugins.trac.wordpress.org
- browser/webmention/tags/5.10.1/includes/handler/class-meta.php#L78
- browser/webmention/tags/5.10.1/includes/entity/class-item.php#L297
- browser/webmention/tags/5.10.1/includes/class-receiver.php#L453
- browser/webmention/tags/5.10.1/includes/entity/class-item.php#L125
- browser/webmention/tags/5.10.1/includes/class-receiver.php#L267
- browser/webmention/tags/5.10.2/includes/class-receiver.php