CVE-2014-8683 Cross-site Scripting in Gogs

Medium 4.3 Published Updated

Remote attackers can inject arbitrary web script or HTML via the markdown API, potentially compromising user sessions or data.

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

What is CVE-2014-8683?

CVE-2014-8683 is a medium-severity cross-site scripting vulnerability in n/a, published on 21 Nov 2014. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Cross-site scripting (XSS) vulnerability in models/issue.go in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.x before 0.5.8 allows remote attackers to inject arbitrary web script or HTML via the text parameter to api/v1/markdown.

Weakness: CWE-79

Which versions are affected by CVE-2014-8683?

3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.

PackageAffectedFixed in
gogs.io/gogs GoFrom 0.3.10.5.8
gogs.io/gogs GoFrom 0.3.10.5.8
gogs.io/gogs GoFrom 0.3.10.5.8

Products include Gogits Gogs.

How do I fix CVE-2014-8683?

Upgrade gogs.io/gogs to 0.5.8 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-2014-8683 being exploited?

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

Sources

Also known as GHSA-9hx4-qm7h-x84j, GO-2022-0642.

Is CVE-2014-8683 in your software?

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

Check your SBOMs for free