Skip to content

Commit 9aef839

Browse files
authored
Update xmldom to 0.7.2 (#633)
The package is now scoped under @xmldom. See xmldom/xmldom#278 This fixes security vulnerability CVE-2021-32796. Also update xml-crypto and xml-encryption which depends on xmldom.
1 parent a3174b4 commit 9aef839

File tree

3 files changed

+18
-25
lines changed

3 files changed

+18
-25
lines changed

package-lock.json

+13-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@
5050
"watch": "concurrently --kill-others \"npm:*-watch\""
5151
},
5252
"dependencies": {
53+
"@xmldom/xmldom": "^0.7.2",
5354
"debug": "^4.3.1",
5455
"passport-strategy": "^1.0.0",
55-
"xml-crypto": "^2.1.2",
56-
"xml-encryption": "^1.2.4",
56+
"xml-crypto": "^2.1.3",
57+
"xml-encryption": "^1.3.0",
5758
"xml2js": "^0.4.23",
58-
"xmlbuilder": "^15.1.1",
59-
"xmldom": "^0.6.0"
59+
"xmlbuilder": "^15.1.1"
6060
},
6161
"devDependencies": {
6262
"@types/debug": "^4.1.5",
@@ -68,7 +68,6 @@
6868
"@types/xml-crypto": "^1.4.1",
6969
"@types/xml-encryption": "^1.2.0",
7070
"@types/xml2js": "^0.4.8",
71-
"@types/xmldom": "^0.1.30",
7271
"@typescript-eslint/eslint-plugin": "^4.23.0",
7372
"@typescript-eslint/parser": "^4.23.0",
7473
"body-parser": "^1.19.0",

src/node-saml/xml.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as util from "util";
22
import * as xmlCrypto from "xml-crypto";
33
import * as xmlenc from "xml-encryption";
4-
import * as xmldom from "xmldom";
4+
import * as xmldom from "@xmldom/xmldom";
55
import * as xml2js from "xml2js";
66
import * as xmlbuilder from "xmlbuilder";
77
import { isValidSamlSigningOptions, SamlSigningOptions } from "./types";

0 commit comments

Comments
 (0)