CVE-2014-8683: Gogs.io/gogs Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-9hx4-qm7h-x84j
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2014-8683
GHSA Identifier GHSA-9hx4-qm7h-x84j
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Gogs.io/gogs
Package Ecosystem Go
Published Date
Last Updated

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.

gogs.io/gogs fixed: 0.5.8
Upgrade gogs.io/gogs to 0.5.8
Verify Direct and Transitive Dependencies

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

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.

CVE-2014-8683 Affected Gogs.io/gogs Versions

1 component(s)
Fixed Versions:
0.5.8
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?
CVE-2014-8683 is a security vulnerability in Gogs.io/gogs involving Cross-site Scripting in Gogs under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Gogs.io/gogs versions are affected?
Affected versions include releases prior to 0.5.8 across affected packages: gogs.io/gogs.
What version fixes CVE-2014-8683?
Upgrading to 0.5.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gogs.io/gogs affected?
Yes, gogs.io/gogs is affected in releases prior to 0.5.8. Upgrade your dependency to 0.5.8 or later.
What CWE is associated with CVE-2014-8683?
CVE-2014-8683 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Go dependencies for CVE-2014-8683?
Run the dependency tree command: 'inspect dependencies for gogs.io/gogs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}