CVE-2022-21144

Source
https://cve.org/CVERecord?id=CVE-2022-21144
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21144.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21144
Aliases
Published
2022-05-01T15:25:10.325Z
Modified
2026-07-22T02:23:29.033595Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P CVSS Calculator
Summary
Denial of Service (DoS)
Details

This affects all versions of package libxmljs. When invoking the libxmljs.parseXml function with a non-buffer argument the V8 code will attempt invoking the .toString method of the argument. If the argument's toString value is not a Function object V8 will crash.

Database specific
{
    "cna_assigner": "snyk",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "last_affected": "0"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21144.json"
}
References

Affected packages

Git / github.com/libxmljs/libxmljs

Affected ranges

Type
GIT
Repo
https://github.com/libxmljs/libxmljs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:libxmljs_project:libxmljs:*:*:*:*:*:node.js:*:*",
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.19.8"
        }
    ]
}

Affected versions

0.*
0.3.0
0.4.0
0.4.1
0.4.3
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
v0.*
v0.1.0
v0.10.0
v0.11.0
v0.11.1
v0.12.0
v0.13.0
v0.14.0
v0.14.1
v0.14.2
v0.14.3
v0.15.0
v0.16.0
v0.16.1
v0.17.0
v0.17.1
v0.18.0
v0.18.1
v0.18.2
v0.18.3
v0.18.4
v0.18.5
v0.18.6
v0.18.7
v0.18.8
v0.19.0
v0.19.2
v0.19.3
v0.19.4
v0.19.5
v0.19.6
v0.19.7
v0.2.0
v0.6.0
v0.6.1
v0.7.0
v0.8.0
v0.8.1
v0.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21144.json"
vanir_signatures_modified
"2026-07-22T02:23:29Z"
vanir_signatures
[
    {
        "signature_version": "v1",
        "source": "https://github.com/libxmljs/libxmljs/commit/2501807bde9b38cfaed06d1e140487516d91379d",
        "id": "CVE-2022-21144-88512d45",
        "digest": {
            "length": 2195.0,
            "function_hash": "107727053438835856466343391473296274860"
        },
        "target": {
            "function": "NAN_METHOD",
            "file": "src/xml_document.cc"
        },
        "deprecated": false,
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "source": "https://github.com/libxmljs/libxmljs/commit/2501807bde9b38cfaed06d1e140487516d91379d",
        "id": "CVE-2022-21144-8a89c841",
        "digest": {
            "length": 1991.0,
            "function_hash": "136495662352428680651636031310365647788"
        },
        "target": {
            "function": "NAN_METHOD",
            "file": "src/xml_document.cc"
        },
        "deprecated": false,
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "source": "https://github.com/libxmljs/libxmljs/commit/2501807bde9b38cfaed06d1e140487516d91379d",
        "id": "CVE-2022-21144-fe153aa8",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "249851446725122353917134027082104187227",
                "22987054179427781354923844765744493052",
                "92194844220785061289742511096799865613",
                "103842121778067350803698352097324791962",
                "332784255652129248409588464678968976521",
                "118809179461203962188333144776721377647",
                "45923624500783531127707131557921849567",
                "59052600784026491515100570822628383145",
                "206601563682319210915043524735815572577",
                "106256515466840548357998428534562107609",
                "72138142820922648892957219895867383571",
                "37960217532412656122514148666667480580",
                "189025941815283442878199660578987685468",
                "252111081753236280706835628782424485411",
                "195484571969083763760934305661801188029",
                "209151954169205677479930319915944360268",
                "102790475236216434001478899527197655571",
                "292101194238850167358375657424650220425",
                "320837122313242282543495271834571493611",
                "237463097973166374882058319490188168492",
                "325800957678461270556465086366463336358",
                "72138142820922648892957219895867383571"
            ]
        },
        "target": {
            "file": "src/xml_document.cc"
        },
        "deprecated": false,
        "signature_type": "Line"
    }
]