CVE-2022-21144

Source
https://nvd.nist.gov/vuln/detail/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
Related
  • SNYK-JS-LIBXMLJS-2348756
Published
2022-05-01T16:15:07.957Z
Modified
2025-11-20T11:58:41.310785Z
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 CVSS Calculator
Summary
[none]
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.

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

Affected versions

0.*

0.3.0
0.3.1
0.4.0
0.4.1
0.4.2
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

vanir_signatures

[
    {
        "source": "https://github.com/libxmljs/libxmljs/commit/2501807bde9b38cfaed06d1e140487516d91379d",
        "target": {
            "function": "NAN_METHOD",
            "file": "src/xml_document.cc"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-21144-88512d45",
        "digest": {
            "length": 2195.0,
            "function_hash": "107727053438835856466343391473296274860"
        }
    },
    {
        "source": "https://github.com/libxmljs/libxmljs/commit/2501807bde9b38cfaed06d1e140487516d91379d",
        "target": {
            "function": "NAN_METHOD",
            "file": "src/xml_document.cc"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-21144-8a89c841",
        "digest": {
            "length": 1991.0,
            "function_hash": "136495662352428680651636031310365647788"
        }
    },
    {
        "source": "https://github.com/libxmljs/libxmljs/commit/2501807bde9b38cfaed06d1e140487516d91379d",
        "target": {
            "file": "src/xml_document.cc"
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "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"
            ]
        }
    }
]