CVE-2021-32721: Github.com/AndrewBurian/powermux Open Redirect Vulnerability

MODERATE
Advisory Identifier: GHSA-mj9r-wwm8-7q52
CVSS 4.7
CWE-601
Published
Advisory Summary

CVE-2021-32721 is a MODERATE (CVSS 4.7) open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Github.com/AndrewBurian/powermux libraries in the Go ecosystem. The issue involves open redirect in github.com/andrewburian/powermux. Remediation is available by upgrading affected packages to version 1.1.1.

CVE-2021-32721 at a Glance

CVE Identifier CVE-2021-32721
GHSA Identifier GHSA-mj9r-wwm8-7q52
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Github.com/AndrewBurian/powermux
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.7

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
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-2021-32721

To remediate this vulnerability, upgrade all affected Github.com/AndrewBurian/powermux 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/AndrewBurian/powermux fixed: 1.1.1
Upgrade github.com/AndrewBurian/powermux to 1.1.1
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/AndrewBurian/powermux

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-32721, inspect your project dependencies for Github.com/AndrewBurian/powermux:

inspect dependencies for github.com/AndrewBurian/powermux

Analyze the terminal output to locate any version of Github.com/AndrewBurian/powermux in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), 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/AndrewBurian/powermux, 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

### Impact Attackers may be able to craft phishing links and other open redirects by exploiting the trailing slash redirection feature. This may lead to users being redirected to untrusted sites after following an attacker crafted link. ### Patches The issue is resolved in v1.1.1 ### Workarounds There are no existing workarounds. You may detect attempts to craft urls that exploit this feature by looking for request paths containing pairs of forward slashes in sequence combined with a trailing slash e.g. `https://example.com//foo/`

CVE-2021-32721 Affected Github.com/AndrewBurian/powermux Versions

1 component(s)
Fixed Versions:
1.1.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/AndrewBurian/powermux
Go
< 1.1.1
1.1.1

References

Frequently Asked Questions

What is CVE-2021-32721?
CVE-2021-32721 is a security vulnerability in Github.com/AndrewBurian/powermux involving Open Redirect in github.com/AndrewBurian/powermux under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Github.com/AndrewBurian/powermux versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: github.com/AndrewBurian/powermux.
What version fixes CVE-2021-32721?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/AndrewBurian/powermux affected?
Yes, github.com/AndrewBurian/powermux is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What is the CVSS score of CVE-2021-32721?
CVE-2021-32721 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2021-32721?
CVE-2021-32721 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-2021-32721?
Run the dependency tree command: 'inspect dependencies for github.com/AndrewBurian/powermux'. 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-mj9r-wwm8-7q52",
  "modified" : "2024-05-20T20:40:13Z",
  "published" : "2021-07-01T17:00:32Z",
  "aliases" : [ "CVE-2021-32721" ],
  "summary" : "Open Redirect in github.com/AndrewBurian/powermux",
  "details" : "### Impact\nAttackers may be able to craft phishing links and other open redirects by exploiting the trailing slash redirection feature. This may lead to users being redirected to untrusted sites after following an attacker crafted link.\n\n### Patches\nThe issue is resolved in v1.1.1\n\n### Workarounds\nThere are no existing workarounds.\nYou may detect attempts to craft urls that exploit this feature by looking for request paths containing pairs of forward slashes in sequence combined with a trailing slash e.g. `https://example.com//foo/`\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/AndrewBurian/powermux"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/AndrewBurian/powermux/security/advisories/GHSA-mj9r-wwm8-7q52"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32721"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AndrewBurian/powermux/pull/42"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AndrewBurian/powermux/commit/5e60a8a0372b35a898796c2697c40e8daabed8e9"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-06-30T17:43:53Z",
    "nvd_published_at" : "2021-06-29T19:15:00Z"
  }
}