Skip to content

[1.3][CVE-2023-0842] Bump xml2js from 0.4.22 to 0.6.2#5024

Merged
ananzh merged 4 commits intoopensearch-project:1.3from
ananzh:1.3-xml2js
Sep 15, 2023
Merged

[1.3][CVE-2023-0842] Bump xml2js from 0.4.22 to 0.6.2#5024
ananzh merged 4 commits intoopensearch-project:1.3from
ananzh:1.3-xml2js

Conversation

@ananzh
Copy link
Copy Markdown
Member

@ananzh ananzh commented Sep 14, 2023

With the SemVer philosophy, when releasing a patch version, it should not introduce breaking changes, which includes bumping a dependency to its major version. xml2js is a dev dependency in both OSD and package @osd/test . Meanwhile, it is not included in release artifact. Therefore, bumping major versions should not break SemVer rules.

Description

Due to Leonidas-from-XIV/node-xml2js#672 (comment) , try bump xml2js to 0.6.2 to solve cve and avoid regression errors.

Issues Resolved

CVE-2023-0842
#3793

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
    • yarn test:ftr
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: ananzh <ananzh@amazon.com>
ZilongX
ZilongX previously approved these changes Sep 14, 2023
Comment thread CHANGELOG.md Outdated
- [CVE-2022-1537] Bump grunt from `1.4.1` to `1.5.3` ([#3723](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3723))
- [CVE-2022-0436] Bump grunt from `1.4.1` to `1.5.3` ([#3723](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3723))
- [CVE-2023-26136] Resolve `tough-cookie` to `4.1.3` ([#4682](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4682))
- [CVE-2023-0842] Bump `xml2js` from `0.4.22` to `0.6.2` ([#5024](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5024))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong section - should be under L10.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eeeee... I need to fix others. thank you.

Comment thread yarn.lock Outdated

xml2js@^0.4.22, xml2js@^0.4.5:
xml2js@^0.4.5:
version "0.4.22"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we still have a sub-dep requiring 0.4.22. To resolve the CVE, do we need to force a resolution?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you are right. it is brought in by

=> Found "parse-bmfont-xml#xml2js@0.4.23"
info This module exists because "_project_#jimp#@jimp#plugins#@jimp#plugin-print#load-bmfont#parse-bmfont-xml" depends on it.
info Disk size without dependencies: "72KB"
info Disk size with unique dependencies: "504KB"
info Disk size with transitive dependencies: "504KB"
info Number of shared dependencies: 2

with the latest jimp, we still see xml2js@0.4.23. have to force a resolution. Thank you for checking this carefully. ❤️

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 14, 2023

Codecov Report

Merging #5024 (ae071f0) into 1.3 (2a386b8) will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              1.3    #5024      +/-   ##
==========================================
+ Coverage   67.45%   67.50%   +0.04%     
==========================================
  Files        3044     3044              
  Lines       58692    58692              
  Branches     8902     8902              
==========================================
+ Hits        39593    39619      +26     
+ Misses      16946    16925      -21     
+ Partials     2153     2148       -5     
Flag Coverage Δ
Linux 67.45% <ø> (ø)
Windows 67.45% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 6 files with indirect coverage changes

Signed-off-by: ananzh <ananzh@amazon.com>
Signed-off-by: Anan Zhuang <ananzh@amazon.com>
Signed-off-by: Anan Zhuang <ananzh@amazon.com>
@ananzh ananzh merged commit a45dea3 into opensearch-project:1.3 Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cve Security vulnerabilities detected by Dependabot or Mend v1.3.13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants