CVE-2024-29217 Apache Answer: XSS vulnerability when changing personal website

Medium 4.6 Published Updated

A logged-in user can inject malicious scripts via the personal website 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-29217?

CVE-2024-29217 is a medium-severity cross-site scripting vulnerability in Apache Answer, published on 21 Apr 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: before 1.3.0.

XSS attack when user changes personal website. A logged-in user, when modifying their personal website, can input malicious code in the website to create such an attack. Users are recommended to upgrade to version [1.3.0], which fixes the issue.

Weakness: CWE-79

Which versions are affected by CVE-2024-29217?

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.3.0
github.com/apache/incubator-answer GoAll versions1.3.0
github.com/apache/incubator-answer GoAll versions1.3.0

Products include Apache Answer.

How do I fix CVE-2024-29217?

Upgrade github.com/apache/incubator-answer to 1.3.0 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-29217 being exploited?

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

Sources

Also known as GHSA-cvqr-mwh6-2vc6, GO-2024-2743.

Is CVE-2024-29217 in your software?

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

Check your SBOMs for free