CVE-2014-8683: Gogs.io/gogs Cross-Site Scripting Vulnerability
MODERATECVE-2014-8683 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Gogs.io/gogs libraries in the Go ecosystem. The issue involves cross-site scripting in gogs. Remediation is available by upgrading affected packages to version 0.5.8.
CVE-2014-8683 at a Glance
How to Fix CVE-2014-8683
To remediate this vulnerability, upgrade all affected Gogs.io/gogs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade gogs.io/gogs to 0.5.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for gogs.io/gogs
How to Check if You Are Affected
To determine whether your application is affected by CVE-2014-8683, inspect your project dependencies for Gogs.io/gogs:
inspect dependencies for gogs.io/gogs
Analyze the terminal output to locate any version of Gogs.io/gogs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Gogs.io/gogs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2014-8683 Affected Gogs.io/gogs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gogs.io/gogs
|
Go |
≥ 0.3.1
< 0.5.8
|
0.5.8
|
References
Frequently Asked Questions
What is CVE-2014-8683?
Which Gogs.io/gogs versions are affected?
What version fixes CVE-2014-8683?
Is gogs.io/gogs affected?
What CWE is associated with CVE-2014-8683?
How can I check Go dependencies for CVE-2014-8683?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9hx4-qm7h-x84j",
"modified" : "2021-05-20T16:31:56Z",
"published" : "2021-06-29T18:32:53Z",
"aliases" : [ "CVE-2014-8683" ],
"summary" : "Cross-site Scripting in Gogs",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "gogs.io/gogs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.3.1"
}, {
"fixed" : "0.5.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-8683"
}, {
"type" : "WEB",
"url" : "https://github.com/gogits/gogs/commit/3abc41cccab2486012b46305827433ad6f5deade"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/98693"
}, {
"type" : "WEB",
"url" : "https://github.com/gogits/gogs/releases/tag/v0.5.8"
}, {
"type" : "WEB",
"url" : "https://gogs.io/docs/intro/change_log.html"
}, {
"type" : "WEB",
"url" : "https://packetstormsecurity.com/files/129118/Gogs-Markdown-Renderer-Cross-Site-Scripting.html"
}, {
"type" : "WEB",
"url" : "https://seclists.org/fulldisclosure/2014/Nov/31"
}, {
"type" : "WEB",
"url" : "https://seclists.org/fulldisclosure/2014/Nov/34"
}, {
"type" : "WEB",
"url" : "https://www.securityfocus.com/archive/1/533996/100/0/threaded"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-20T16:31:56Z",
"nvd_published_at" : null
}
}