{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0e1a49c8907645d2e155f0d89d4d9895ac5112b5"
            },
            {
              "fixed": "1098c30a040e72a4654968547f415be4e4c40fe7"
            },
            {
              "fixed": "1358d157d0bd83be1dfe356a69213df9fac0b539"
            },
            {
              "fixed": "50f06b3efb638efb0abd95dc62dca05ae67882c2"
            },
            {
              "fixed": "7ffcd44d7e6c46704f8af0321d9314cd26e0e18a"
            },
            {
              "fixed": "8598060bacada41a0eb09d95c97744ff4e428f8e"
            },
            {
              "fixed": "babe75030c7f64a37826bb3342317134568bef61"
            },
            {
              "fixed": "bf22713507fe1fc3a2c4b525cf0a88c2dc87a3a2"
            }
          ],
          "repo": "https://github.com/gnome/libxml2",
          "type": "GIT"
        }
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.11.4"
              }
            ],
            "source": "DESCRIPTION"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9d69b44ed3357b8069856083d39ee418cd10109b"
            }
          ],
          "repo": "https://github.com/sparklemotion/nokogiri",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-7rrm-v45f-jp64"
  ],
  "database_specific": {},
  "details": "Nokogiri before 1.11.4 (CRuby implementation only, when the packaged/vendored libxml2 is used) bundles libxml2 2.9.10, which is affected by multiple vulnerabilities addressed in libxml2 2.9.12, including a memory leak in xmlSchemaValidateStream (CVE-2019-20388), a global buffer over-read in xmlEncodeEntitiesInternal (CVE-2020-24977), a heap-based buffer overflow (CVE-2021-3517), and an out-of-bounds read (CVE-2021-3518). Processing crafted XML documents may lead to denial of service, information disclosure, or memory corruption.",
  "id": "CVE-2021-47996",
  "modified": "2026-08-30T03:30:18.038268712Z",
  "published": "2026-08-25T16:16:42.930Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-7rrm-v45f-jp64"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/nokogiri-before-multiple-vulnerabilities-via-libxml2"
    },
    {
      "type": "FIX",
      "url": "https://github.com/GNOME/libxml2/commit/0e1a49c8907645d2e155f0d89d4d9895ac5112b5"
    },
    {
      "type": "FIX",
      "url": "https://github.com/GNOME/libxml2/commit/1098c30a040e72a4654968547f415be4e4c40fe7"
    },
    {
      "type": "FIX",
      "url": "https://github.com/GNOME/libxml2/commit/1358d157d0bd83be1dfe356a69213df9fac0b539"
    },
    {
      "type": "FIX",
      "url": "https://github.com/GNOME/libxml2/commit/50f06b3efb638efb0abd95dc62dca05ae67882c2"
    },
    {
      "type": "FIX",
      "url": "https://github.com/GNOME/libxml2/commit/7ffcd44d7e6c46704f8af0321d9314cd26e0e18a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/GNOME/libxml2/commit/8598060bacada41a0eb09d95c97744ff4e428f8e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/GNOME/libxml2/commit/babe75030c7f64a37826bb3342317134568bef61"
    },
    {
      "type": "FIX",
      "url": "https://github.com/GNOME/libxml2/commit/bf22713507fe1fc3a2c4b525cf0a88c2dc87a3a2"
    }
  ],
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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",
      "type": "CVSS_V4"
    }
  ]
}