CVE-2024-8572: Github.com/gouniverse/cms Cross-Site Scripting Vulnerability
MODERATECVE-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
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).
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.
Upgrade github.com/gouniverse/cms to 1.4.1
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
CVE-2024-8572 Affected Github.com/gouniverse/cms Versions
1 component(s)| 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?
Which Github.com/gouniverse/cms versions are affected?
What version fixes CVE-2024-8572?
Is github.com/gouniverse/cms affected?
What is the CVSS score of CVE-2024-8572?
What CWE is associated with CVE-2024-8572?
How can I check Go dependencies for CVE-2024-8572?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}