Vulnerabilites related to xmldom - xmldom
cve-2021-21366
Vulnerability from cvelistv5
Published
2021-03-12 00:00
Modified
2024-08-03 18:09
Severity ?
EPSS score ?
Summary
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.4.0 and older do not correctly preserve system identifiers, FPIs or namespaces when repeatedly parsing and serializing maliciously crafted documents. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This is fixed in version 0.5.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.
References
{ containers: { adp: [ { providerMetadata: { dateUpdated: "2024-08-03T18:09:16.000Z", orgId: "af854a3a-2127-422b-91ae-364da2661108", shortName: "CVE", }, references: [ { tags: [ "x_transferred", ], url: "https://github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv", }, { tags: [ "x_transferred", ], url: "https://www.npmjs.com/package/xmldom", }, { tags: [ "x_transferred", ], url: "https://github.com/xmldom/xmldom/releases/tag/0.5.0", }, { tags: [ "x_transferred", ], url: "https://github.com/xmldom/xmldom/commit/d4201b9dfbf760049f457f9f08a3888d48835135", }, { name: "[debian-lts-announce] 20230101 [SECURITY] [DLA 3260-1] node-xmldom security update", tags: [ "mailing-list", "x_transferred", ], url: "https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html", }, ], title: "CVE Program Container", }, ], cna: { affected: [ { product: "xmldom", vendor: "xmldom", versions: [ { status: "affected", version: "< 0.5.0", }, ], }, ], descriptions: [ { lang: "en", value: "xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.4.0 and older do not correctly preserve system identifiers, FPIs or namespaces when repeatedly parsing and serializing maliciously crafted documents. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This is fixed in version 0.5.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.", }, ], metrics: [ { cvssV3_1: { attackComplexity: "LOW", attackVector: "NETWORK", availabilityImpact: "NONE", baseScore: 4.3, baseSeverity: "MEDIUM", confidentialityImpact: "NONE", integrityImpact: "LOW", privilegesRequired: "NONE", scope: "UNCHANGED", userInteraction: "REQUIRED", vectorString: "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N", version: "3.1", }, }, ], problemTypes: [ { descriptions: [ { cweId: "CWE-436", description: "CWE-436 Interpretation Conflict", lang: "en", type: "CWE", }, ], }, { descriptions: [ { cweId: "CWE-115", description: "CWE-115: Misinterpretation of Input", lang: "en", type: "CWE", }, ], }, ], providerMetadata: { dateUpdated: "2023-01-01T00:00:00", orgId: "a0819718-46f1-4df5-94e2-005712e83aaa", shortName: "GitHub_M", }, references: [ { url: "https://github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv", }, { url: "https://www.npmjs.com/package/xmldom", }, { url: "https://github.com/xmldom/xmldom/releases/tag/0.5.0", }, { url: "https://github.com/xmldom/xmldom/commit/d4201b9dfbf760049f457f9f08a3888d48835135", }, { name: "[debian-lts-announce] 20230101 [SECURITY] [DLA 3260-1] node-xmldom security update", tags: [ "mailing-list", ], url: "https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html", }, ], source: { advisory: "GHSA-h6q6-9hqw-rwfv", discovery: "UNKNOWN", }, title: "Misinterpretation of malicious XML input", }, }, cveMetadata: { assignerOrgId: "a0819718-46f1-4df5-94e2-005712e83aaa", assignerShortName: "GitHub_M", cveId: "CVE-2021-21366", datePublished: "2021-03-12T00:00:00", dateReserved: "2020-12-22T00:00:00", dateUpdated: "2024-08-03T18:09:16.000Z", state: "PUBLISHED", }, dataType: "CVE_RECORD", dataVersion: "5.1", }
cve-2021-32796
Vulnerability from cvelistv5
Published
2021-07-27 21:45
Modified
2024-08-03 23:33
Severity ?
EPSS score ?
Summary
xmldom is an open source pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.6.0 and older do not correctly escape special characters when serializing elements removed from their ancestor. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This issue has been resolved in version 0.7.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.
References
▼ | URL | Tags |
---|---|---|
https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/ | x_refsource_MISC | |
https://github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q | x_refsource_CONFIRM | |
https://github.com/xmldom/xmldom/commit/7b4b743917a892d407356e055b296dcd6d107e8b | x_refsource_MISC |
{ containers: { adp: [ { providerMetadata: { dateUpdated: "2024-08-03T23:33:55.989Z", orgId: "af854a3a-2127-422b-91ae-364da2661108", shortName: "CVE", }, references: [ { tags: [ "x_refsource_MISC", "x_transferred", ], url: "https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/", }, { tags: [ "x_refsource_CONFIRM", "x_transferred", ], url: "https://github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q", }, { tags: [ "x_refsource_MISC", "x_transferred", ], url: "https://github.com/xmldom/xmldom/commit/7b4b743917a892d407356e055b296dcd6d107e8b", }, ], title: "CVE Program Container", }, ], cna: { affected: [ { product: "xmldom", vendor: "xmldom", versions: [ { status: "affected", version: "< 0.7.0", }, ], }, ], descriptions: [ { lang: "en", value: "xmldom is an open source pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.6.0 and older do not correctly escape special characters when serializing elements removed from their ancestor. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This issue has been resolved in version 0.7.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.", }, ], metrics: [ { cvssV3_1: { attackComplexity: "LOW", attackVector: "NETWORK", availabilityImpact: "NONE", baseScore: 6.5, baseSeverity: "MEDIUM", confidentialityImpact: "LOW", integrityImpact: "LOW", privilegesRequired: "NONE", scope: "UNCHANGED", userInteraction: "NONE", vectorString: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", version: "3.1", }, }, ], problemTypes: [ { descriptions: [ { cweId: "CWE-116", description: "CWE-116: Improper Encoding or Escaping of Output", lang: "en", type: "CWE", }, ], }, ], providerMetadata: { dateUpdated: "2021-07-27T21:45:12", orgId: "a0819718-46f1-4df5-94e2-005712e83aaa", shortName: "GitHub_M", }, references: [ { tags: [ "x_refsource_MISC", ], url: "https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/", }, { tags: [ "x_refsource_CONFIRM", ], url: "https://github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q", }, { tags: [ "x_refsource_MISC", ], url: "https://github.com/xmldom/xmldom/commit/7b4b743917a892d407356e055b296dcd6d107e8b", }, ], source: { advisory: "GHSA-5fg8-2547-mr8q", discovery: "UNKNOWN", }, title: "Misinterpretation of malicious XML input in xmldom", x_legacyV4Record: { CVE_data_meta: { ASSIGNER: "security-advisories@github.com", ID: "CVE-2021-32796", STATE: "PUBLIC", TITLE: "Misinterpretation of malicious XML input in xmldom", }, affects: { vendor: { vendor_data: [ { product: { product_data: [ { product_name: "xmldom", version: { version_data: [ { version_value: "< 0.7.0", }, ], }, }, ], }, vendor_name: "xmldom", }, ], }, }, data_format: "MITRE", data_type: "CVE", data_version: "4.0", description: { description_data: [ { lang: "eng", value: "xmldom is an open source pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.6.0 and older do not correctly escape special characters when serializing elements removed from their ancestor. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This issue has been resolved in version 0.7.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.", }, ], }, impact: { cvss: { attackComplexity: "LOW", attackVector: "NETWORK", availabilityImpact: "NONE", baseScore: 6.5, baseSeverity: "MEDIUM", confidentialityImpact: "LOW", integrityImpact: "LOW", privilegesRequired: "NONE", scope: "UNCHANGED", userInteraction: "NONE", vectorString: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", version: "3.1", }, }, problemtype: { problemtype_data: [ { description: [ { lang: "eng", value: "CWE-116: Improper Encoding or Escaping of Output", }, ], }, ], }, references: { reference_data: [ { name: "https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/", refsource: "MISC", url: "https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/", }, { name: "https://github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q", refsource: "CONFIRM", url: "https://github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q", }, { name: "https://github.com/xmldom/xmldom/commit/7b4b743917a892d407356e055b296dcd6d107e8b", refsource: "MISC", url: "https://github.com/xmldom/xmldom/commit/7b4b743917a892d407356e055b296dcd6d107e8b", }, ], }, source: { advisory: "GHSA-5fg8-2547-mr8q", discovery: "UNKNOWN", }, }, }, }, cveMetadata: { assignerOrgId: "a0819718-46f1-4df5-94e2-005712e83aaa", assignerShortName: "GitHub_M", cveId: "CVE-2021-32796", datePublished: "2021-07-27T21:45:13", dateReserved: "2021-05-12T00:00:00", dateUpdated: "2024-08-03T23:33:55.989Z", state: "PUBLISHED", }, dataType: "CVE_RECORD", dataVersion: "5.1", }
cve-2022-39353
Vulnerability from cvelistv5
Published
2022-11-02 00:00
Modified
2024-08-03 12:00
Severity ?
EPSS score ?
Summary
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. xmldom parses XML that is not well-formed because it contains multiple top level elements, and adds all root nodes to the `childNodes` collection of the `Document`, without reporting any error or throwing. This breaks the assumption that there is only a single root node in the tree, which led to issuance of CVE-2022-39299 as it is a potential issue for dependents. Update to @xmldom/xmldom@~0.7.7, @xmldom/xmldom@~0.8.4 (dist-tag latest) or @xmldom/xmldom@>=0.9.0-beta.4 (dist-tag next). As a workaround, please one of the following approaches depending on your use case: instead of searching for elements in the whole DOM, only search in the `documentElement`or reject a document with a document that has more then 1 `childNode`.
References
Impacted products
{ containers: { adp: [ { providerMetadata: { dateUpdated: "2024-08-03T12:00:44.144Z", orgId: "af854a3a-2127-422b-91ae-364da2661108", shortName: "CVE", }, references: [ { tags: [ "x_transferred", ], url: "https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883", }, { tags: [ "x_transferred", ], url: "https://github.com/jindw/xmldom/issues/150", }, { name: "[debian-lts-announce] 20230101 [SECURITY] [DLA 3260-1] node-xmldom security update", tags: [ "mailing-list", "x_transferred", ], url: "https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html", }, ], title: "CVE Program Container", }, ], cna: { affected: [ { product: "xmldom", vendor: "xmldom", versions: [ { status: "affected", version: "<= 0.6.0", }, { status: "affected", version: "< 0.7.7", }, { status: "affected", version: ">= 0.8.0, < 0.8.4", }, { status: "affected", version: ">= 0.9.0-beta.1, < 0.9.0-beta.4", }, ], }, ], descriptions: [ { lang: "en", value: "xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. xmldom parses XML that is not well-formed because it contains multiple top level elements, and adds all root nodes to the `childNodes` collection of the `Document`, without reporting any error or throwing. This breaks the assumption that there is only a single root node in the tree, which led to issuance of CVE-2022-39299 as it is a potential issue for dependents. Update to @xmldom/xmldom@~0.7.7, @xmldom/xmldom@~0.8.4 (dist-tag latest) or @xmldom/xmldom@>=0.9.0-beta.4 (dist-tag next). As a workaround, please one of the following approaches depending on your use case: instead of searching for elements in the whole DOM, only search in the `documentElement`or reject a document with a document that has more then 1 `childNode`.", }, ], metrics: [ { cvssV3_1: { attackComplexity: "LOW", attackVector: "NETWORK", availabilityImpact: "HIGH", baseScore: 9.4, baseSeverity: "CRITICAL", confidentialityImpact: "LOW", integrityImpact: "HIGH", privilegesRequired: "NONE", scope: "UNCHANGED", userInteraction: "NONE", vectorString: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H", version: "3.1", }, }, ], problemTypes: [ { descriptions: [ { cweId: "CWE-20", description: "CWE-20: Improper Input Validation", lang: "en", type: "CWE", }, ], }, { descriptions: [ { cweId: "CWE-1288", description: "CWE-1288: Improper Validation of Consistency within Input", lang: "en", type: "CWE", }, ], }, ], providerMetadata: { dateUpdated: "2023-01-01T00:00:00", orgId: "a0819718-46f1-4df5-94e2-005712e83aaa", shortName: "GitHub_M", }, references: [ { url: "https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883", }, { url: "https://github.com/jindw/xmldom/issues/150", }, { name: "[debian-lts-announce] 20230101 [SECURITY] [DLA 3260-1] node-xmldom security update", tags: [ "mailing-list", ], url: "https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html", }, ], source: { advisory: "GHSA-crh6-fp67-6883", discovery: "UNKNOWN", }, title: "xmldom allows multiple root nodes in a DOM", }, }, cveMetadata: { assignerOrgId: "a0819718-46f1-4df5-94e2-005712e83aaa", assignerShortName: "GitHub_M", cveId: "CVE-2022-39353", datePublished: "2022-11-02T00:00:00", dateReserved: "2022-09-02T00:00:00", dateUpdated: "2024-08-03T12:00:44.144Z", state: "PUBLISHED", }, dataType: "CVE_RECORD", dataVersion: "5.1", }