GHSA-5mwf-688x-mr7x: Duplicate Advisory Nokogiri Updates Packaged Libxml2 To Vulnerability
LOWGHSA-5mwf-688x-mr7x is a LOW nokogiri updates packaged libxml2 to vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting Duplicate Advisory libraries in the RubyGems ecosystem. The issue involves nokogiri updates packaged libxml2 to 2.13.6 to resolve cve-2025-24928 and cve-2024-56171. Remediation is available by upgrading affected packages to version 1.18.3.
GHSA-5mwf-688x-mr7x at a Glance
How to Fix GHSA-5mwf-688x-mr7x
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 nokogiri to 1.18.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for nokogiri
How to Check if You Are Affected
To determine whether your application is affected by GHSA-5mwf-688x-mr7x, inspect your project dependencies for Duplicate Advisory:
inspect dependencies for nokogiri
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 1.18.3), 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-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. 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-5mwf-688x-mr7x Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nokogiri
|
RubyGems |
< 1.18.3
|
1.18.3
|
References
Frequently Asked Questions
What is GHSA-5mwf-688x-mr7x?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-5mwf-688x-mr7x?
Is nokogiri affected?
What CWE is associated with GHSA-5mwf-688x-mr7x?
How can I check RubyGems dependencies for GHSA-5mwf-688x-mr7x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5mwf-688x-mr7x",
"modified" : "2025-03-10T22:39:14Z",
"published" : "2025-02-19T22:17:19Z",
"withdrawn" : "2025-03-10T22:39:14Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Nokogiri updates packaged libxml2 to 2.13.6 to resolve CVE-2025-24928 and CVE-2024-56171",
"details" : "# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-vvfq-8hwr-qm4m. This link is maintained to preserve external references.\n\n# Original Description\n\n## Summary\n\nNokogiri v1.18.3 upgrades its dependency libxml2 to\n[v2.13.6](https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.6).\n\nlibxml2 v2.13.6 addresses:\n\n- CVE-2025-24928\n - described at https://gitlab.gnome.org/GNOME/libxml2/-/issues/847\n- CVE-2024-56171\n - described at https://gitlab.gnome.org/GNOME/libxml2/-/issues/828\n\n## Impact\n\n### CVE-2025-24928\n\nStack-buffer overflow is possible when reporting DTD validation\nerrors if the input contains a long (~3kb) QName prefix.\n\n### CVE-2024-56171\n\nUse-after-free is possible during validation against untrusted\nXML Schemas (.xsd) and, potentially, validation of untrusted documents\nagainst trusted Schemas if they make use of `xsd:keyref` in combination\nwith recursively defined types that have additional identity constraints.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "nokogiri"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.18.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vvfq-8hwr-qm4m"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/GHSA-vvfq-8hwr-qm4m.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sparklemotion/nokogiri"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1395" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-19T22:17:19Z",
"nvd_published_at" : null
}
}