Skip to content

Commit

Permalink
STCLI-234 bump fast-xml-parser (#331)
Browse files Browse the repository at this point in the history
Bump `fast-xml-parser` to `^4.24` to avoid CVE-2023-34104, CVE-2023-26920

Refs STCLI-234
  • Loading branch information
zburke committed Jun 14, 2023
1 parent 470fbd4 commit 1b21e16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Bump `just-kebab-case` to `^4.2.0`.
* Remove `isbinaryfile` resolution.
* Bump devdeps `sinon` to `15.0.4`, `sinon-chai` to `3.7.0`.
* Bump `fast-xml-parser` to `4.2.4`. Refs STCLI-234.

## [2.7.0](https://github.com/folio-org/stripes-cli/tree/v2.7.0) (2023-02-07)
[Full Changelog](https://github.com/folio-org/stripes-cli/compare/v2.6.3...v2.7.0)
Expand Down
4 changes: 2 additions & 2 deletions lib/cli/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const logger = require('./logger')();
const globalDirs = require('./global-dirs');
const { stripesModules, toFolioName } = require('../environment/inventory');

const xmlParser = importLazy('fast-xml-parser');
const { XMLParser } = importLazy('fast-xml-parser');

const cliRoot = path.join(__dirname, '..', '..');

Expand Down Expand Up @@ -39,7 +39,7 @@ function loadXml(filePath) {
let xml;
try {
const data = fs.readFileSync(filePath, 'utf-8');
xml = xmlParser.parse(data);
xml = (new XMLParser()).parse(data);
} catch (err) {
console.log(err);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"configstore": "^3.1.1",
"debug": "^4.0.1",
"express": "^4.17.1",
"fast-xml-parser": "^3.12.10",
"fast-xml-parser": "^4.2.4",
"find-up": "^2.1.0",
"fs-extra": "^11.1.1",
"get-stdin": "^6.0.0",
Expand Down

0 comments on commit 1b21e16

Please sign in to comment.