CVE-2024-8572: Github.com/gouniverse/cms Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-pv7h-hg6m-82j8
CVSS 3.5
CWE-79
Published
Advisory Summary

CVE-2024-8572 is a MODERATE (CVSS 3.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/gouniverse/cms libraries in the Go ecosystem. The issue involves gouniverse golang cms vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 1.4.1.

CVE-2024-8572 at a Glance

CVE Identifier CVE-2024-8572
GHSA Identifier GHSA-pv7h-hg6m-82j8
Severity MODERATE
CVSS v3.1 Base Score 3.5
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Github.com/gouniverse/cms
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.5

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

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

How to Fix CVE-2024-8572

To remediate this vulnerability, upgrade all affected Github.com/gouniverse/cms 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/gouniverse/cms fixed: 1.4.1
Upgrade github.com/gouniverse/cms to 1.4.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/gouniverse/cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-8572, inspect your project dependencies for Github.com/gouniverse/cms:

inspect dependencies for github.com/gouniverse/cms

Analyze the terminal output to locate any version of Github.com/gouniverse/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.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-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 Github.com/gouniverse/cms, 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 Gouniverse GoLang CMS 1.4.0. It has been declared as problematic. This vulnerability affects the function PageRenderHtmlByAlias of the file FrontendHandler.go. The manipulation of the argument alias leads to cross site scripting. The attack can be initiated remotely. Upgrading to version 1.4.1 is able to address this issue. The patch is identified as 3e661cdfb4beeb9fe2ad507cdb8104c0b17d072c. It is recommended to upgrade the affected component.

CVE-2024-8572 Affected Github.com/gouniverse/cms Versions

1 component(s)
Fixed Versions:
1.4.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/gouniverse/cms
Go
< 1.4.1
1.4.1

References

Frequently Asked Questions

What is CVE-2024-8572?
CVE-2024-8572 is a security vulnerability in Github.com/gouniverse/cms involving Gouniverse GoLang CMS vulnerable to Cross-site Scripting under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Github.com/gouniverse/cms versions are affected?
Affected versions include releases prior to 1.4.1 across affected packages: github.com/gouniverse/cms.
What version fixes CVE-2024-8572?
Upgrading to 1.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/gouniverse/cms affected?
Yes, github.com/gouniverse/cms is affected in releases prior to 1.4.1. Upgrade your dependency to 1.4.1 or later.
What is the CVSS score of CVE-2024-8572?
CVE-2024-8572 has a CVSS v3.1 base score of 3.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2024-8572?
CVE-2024-8572 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-2024-8572?
Run the dependency tree command: 'inspect dependencies for github.com/gouniverse/cms'. 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-pv7h-hg6m-82j8",
  "modified" : "2024-09-16T16:15:43Z",
  "published" : "2024-09-08T09:30:27Z",
  "aliases" : [ "CVE-2024-8572" ],
  "summary" : "Gouniverse GoLang CMS vulnerable to Cross-site Scripting",
  "details" : "A vulnerability was found in Gouniverse GoLang CMS 1.4.0. It has been declared as problematic. This vulnerability affects the function PageRenderHtmlByAlias of the file FrontendHandler.go. The manipulation of the argument alias leads to cross site scripting. The attack can be initiated remotely. Upgrading to version 1.4.1 is able to address this issue. The patch is identified as 3e661cdfb4beeb9fe2ad507cdb8104c0b17d072c. It is recommended to upgrade the affected component.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gouniverse/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8572"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gouniverse/cms/issues/5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gouniverse/cms/issues/5#issuecomment-2330848731"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gouniverse/cms/commit/3e661cdfb4beeb9fe2ad507cdb8104c0b17d072c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gouniverse/cms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gouniverse/cms/releases/tag/v1.4.1"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3125"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.276802"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.276802"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.401896"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-09T18:17:47Z",
    "nvd_published_at" : "2024-09-08T08:15:13Z"
  }
}