Vulnerabilities in pkg:golang/github.com/go-macaron/i18n

PACKAGE
Advisory Identifier: GHSA-jwrv-x6rx-8vfm
Advisory Summary

CVE-2020-36627 is a MODERATE (CVSS 6.1) macaron i18n open redirect vulnerability vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Github.com/go macaron/i18n libraries in the Go ecosystem. The issue involves macaron i18n open redirect vulnerability. Remediation is available by upgrading affected packages to version 0.5.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/go-macaron/i18n

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/go-macaron/i18n. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jwrv-x6rx-8vfm CVE-2020-36627 MODERATE Macaron i18n Open Redirect vulnerability

CVE-2020-36627 at a Glance

CVE Identifier CVE-2020-36627
GHSA Identifier GHSA-jwrv-x6rx-8vfm
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Github.com/go macaron/i18n
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2020-36627

To remediate this vulnerability, upgrade all affected Github.com/go macaron/i18n dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/go-macaron/i18n fixed: 0.5.0
Upgrade github.com/go-macaron/i18n to 0.5.0
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 github.com/go-macaron/i18n

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-36627, inspect your project dependencies for Github.com/go macaron/i18n:

inspect dependencies for github.com/go-macaron/i18n

Analyze the terminal output to locate any version of Github.com/go macaron/i18n in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.0), 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Github.com/go macaron/i18n, 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

A vulnerability was found in Macaron i18n. It has been declared as problematic. Affected by this vulnerability is an unknown functionality of the file i18n.go. The manipulation leads to open redirect. The attack can be launched remotely. Upgrading to version 0.5.0 can address this issue. The name of the patch is 329b0c4844cc16a5a253c011b55180598e707735. It is recommended to upgrade the affected component. The identifier VDB-216745 was assigned to this vulnerability.

CVE-2020-36627 Affected Github.com/go macaron/i18n Versions

1 component(s)
Fixed Versions:
0.5.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/go-macaron/i18n
Go
< 0.5.0
0.5.0

References

Frequently Asked Questions

What is CVE-2020-36627?
CVE-2020-36627 is a security vulnerability in Github.com/go macaron/i18n involving Macaron i18n Open Redirect vulnerability under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Github.com/go macaron/i18n versions are affected?
Affected versions include releases prior to 0.5.0 across affected packages: github.com/go-macaron/i18n.
What version fixes CVE-2020-36627?
Upgrading to 0.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/go-macaron/i18n affected?
Yes, github.com/go-macaron/i18n is affected in releases prior to 0.5.0. Upgrade your dependency to 0.5.0 or later.
What is the CVSS score of CVE-2020-36627?
CVE-2020-36627 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2020-36627?
CVE-2020-36627 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Go dependencies for CVE-2020-36627?
Run the dependency tree command: 'inspect dependencies for github.com/go-macaron/i18n'. 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-jwrv-x6rx-8vfm",
  "modified" : "2024-05-20T21:42:40Z",
  "published" : "2022-12-25T12:30:25Z",
  "aliases" : [ "CVE-2020-36627" ],
  "summary" : "Macaron i18n Open Redirect vulnerability",
  "details" : "A vulnerability was found in Macaron i18n. It has been declared as problematic. Affected by this vulnerability is an unknown functionality of the file i18n.go. The manipulation leads to open redirect. The attack can be launched remotely. Upgrading to version 0.5.0 can address this issue. The name of the patch is 329b0c4844cc16a5a253c011b55180598e707735. It is recommended to upgrade the affected component. The identifier VDB-216745 was assigned to this vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/go-macaron/i18n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-36627"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/go-macaron/i18n/commit/329b0c4844cc16a5a253c011b55180598e707735"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/go-macaron/i18n"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/go-macaron/i18n/releases/tag/v0.5.0"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-1187"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.216745"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-30T17:19:29Z",
    "nvd_published_at" : "2022-12-25T11:15:00Z"
  }
}