GHSA-4mvm-xh8j-fv27: Duplicate Advisory Govuk_tech_docs Vulnerable To Unescaped HTML Vulnerability
LOWGHSA-4mvm-xh8j-fv27 is a LOW govuk_tech_docs vulnerable to unescaped html vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Duplicate Advisory libraries in the RubyGems ecosystem. The issue involves govuk_tech_docs vulnerable to unescaped html on search results page. Remediation is available in the latest vendor maintenance releases.
GHSA-4mvm-xh8j-fv27 at a Glance
How to Fix GHSA-4mvm-xh8j-fv27
To remediate this vulnerability, upgrade all affected Duplicate Advisory 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 govuk_tech_docs to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for govuk_tech_docs
How to Check if You Are Affected
To determine whether your application is affected by GHSA-4mvm-xh8j-fv27, inspect your project dependencies for Duplicate Advisory:
inspect dependencies for govuk_tech_docs
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Duplicate Advisory, 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
GHSA-4mvm-xh8j-fv27 Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
govuk_tech_docs
|
RubyGems |
≥ 2.0.2
|
|
References
Frequently Asked Questions
What is GHSA-4mvm-xh8j-fv27?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-4mvm-xh8j-fv27?
Is govuk_tech_docs affected?
What CWE is associated with GHSA-4mvm-xh8j-fv27?
How can I check RubyGems dependencies for GHSA-4mvm-xh8j-fv27?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4mvm-xh8j-fv27",
"modified" : "2024-01-05T15:28:17Z",
"published" : "2024-01-04T21:30:24Z",
"withdrawn" : "2024-01-05T15:28:17Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: govuk_tech_docs vulnerable to unescaped HTML on search results page",
"details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-x2xw-hw8g-6773. This link is maintained to preserve external references.\n\n### Original Description\n versions from 2.0.2 to before 3.3.1 are vulnerable to a cross-site scripting vulnerability. Malicious JavaScript may be executed in the user's browser if a malicious search result is displayed on the search page.\n\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "govuk_tech_docs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.3.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/alphagov/tech-docs-gem/security/advisories/GHSA-x2xw-hw8g-6773"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-22048"
}, {
"type" : "WEB",
"url" : "https://github.com/alphagov/tech-docs-gem/pull/323"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-x2xw-hw8g-6773"
}, {
"type" : "WEB",
"url" : "https://github.com/alphagov/tech-docs-gem/releases/tag/v3.3.1"
}, {
"type" : "WEB",
"url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-x2xw-hw8g-6773"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-05T15:28:17Z",
"nvd_published_at" : "2024-01-04T21:15:09Z"
}
}