HTML injection via unescaped Onebox templates
Published Nov 10, 2023 · Updated Sep 3, 2024
HTML injection in Discourse before 3.1.3 stable and 3.2.0.beta3 beta allows remote attackers to inject arbitrary tags through Onebox. Onebox Mustache templates render category names, descriptions, colors, and chat channel names with unescaped triple-curlies, while GitHub label names reach a template without HTML escaping. A crafted link must be Oneboxed; injected markup can alter rendered forum content or hide page elements, with no demonstrated script execution.
Summary
What happened
HTML injection in Discourse before 3.1.3 stable and 3.2.0.beta3 beta allows remote attackers to inject arbitrary tags through Onebox. Onebox Mustache templates render category names, descriptions, colors, and chat channel names with unescaped triple-curlies, while GitHub label names reach a template without HTML escaping. A crafted link must be Oneboxed; injected markup can alter rendered forum content or hide page elements, with no demonstrated script execution.
The record
- CVE
- CVE-2023-47119
- Published
- Nov 10, 2023
- Updated
- Sep 3, 2024
- Vendor
- Discourse
- Product
- Discourse
- Classifications
- CWE-74, CWE-79, T1491.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 10, 2023CVE publishedPublication date reported by the CVE source.
- Sep 3, 2024Record 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 <3.1.3
- Affected versionversion=< 3.1.3
- Affected versionversion=>= 3.2.0.beta0, < 3.2.0.beta3
- Affected versionversion=3.2.0.beta0 <3.2.0.beta3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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