CVE-2024-23349 Apache Answer: XSS vulnerability when submitting summary

Medium 5.4 Published Updated

A logged-in user can inject malicious scripts via the question summary field, potentially executing code in other users' browsers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-23349?

CVE-2024-23349 is a medium-severity cross-site scripting vulnerability in Apache Answer, published on 22 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Apache Answer.This issue affects Apache Answer: through 1.2.1.

XSS attack when user enters summary. A logged-in user, when modifying their own submitted question, can input malicious code in the summary to create such an attack.

Users are recommended to upgrade to version [1.2.5], which fixes the issue.

Weakness: CWE-79

Which versions are affected by CVE-2024-23349?

3 open source packages ship an affected version, including github.com/apache/incubator-answer. It affects 1 product.

PackageAffectedFixed in
github.com/apache/incubator-answer GoAll versions1.2.5
github.com/apache/incubator-answer GoAll versions1.2.5
github.com/apache/incubator-answer GoAll versions1.2.5

Products include Apache Answer.

How do I fix CVE-2024-23349?

Upgrade github.com/apache/incubator-answer to 1.2.5 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-23349 being exploited?

There is no known exploitation of CVE-2024-23349 in the wild and no public exploit code.

Sources

Also known as GHSA-8pf2-qj4v-fj64, GO-2024-2578.

Is CVE-2024-23349 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free