Cross-site scripting via unescaped optgroup label
Published Dec 28, 2022 · Updated Apr 10, 2025
Cross-site scripting in Harvest Chosen 1.8.6 and earlier allows remote attackers to execute script through a crafted optgroup label. AbstractChosen.choice_label inserts item.group_label into selected-option HTML without escape_html(), so markup from an optgroup label becomes executable content. Exploitation requires include_group_label_in_selected to be enabled and a user to select an option whose group label contains attacker-controlled markup.
Summary
What happened
Cross-site scripting in Harvest Chosen 1.8.6 and earlier allows remote attackers to execute script through a crafted optgroup label. AbstractChosen.choice_label inserts item.group_label into selected-option HTML without escape_html(), so markup from an optgroup label becomes executable content. Exploitation requires include_group_label_in_selected to be enabled and a user to select an option whose group label contains attacker-controlled markup.
The record
- CVE
- CVE-2018-25050
- Published
- Dec 28, 2022
- Updated
- Apr 10, 2025
- Vendor
- Harvest
- Product
- Chosen
- Classifications
- CWE-79, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Dec 28, 2022CVE publishedPublication date reported by the CVE source.
- Apr 10, 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=1.8.0
- Affected versionversion=1.8.1
- Affected versionversion=1.8.2
- Affected versionversion=1.8.3
- Affected versionversion=1.8.4
- Affected versionversion=1.8.5
- Affected versionversion=1.8.6
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
- Upstream optgroup-label XSS reproductionproof of concept · demonstrated
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