Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CVE-2021-3803][1.x] Bump nth-check from 1.0.2 to 2.0.1 #3729

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

ananzh
Copy link
Member

@ananzh ananzh commented Mar 30, 2023

Description

nth-check is @v1.0.2 and we needs @v2.0.1 to fix the CVE.

ubuntu@ip-172-31-55-237:~/work/OpenSearch-Dashboards$ yarn why nth-check
yarn why v1.22.19
[1/4] Why do we have the module "nth-check"...?
[2/4] Initialising dependency graph...
warning Resolution field "typescript@4.0.2" is incompatible with requested version "typescript@~3.7.2"
warning Resolution field "shelljs@0.8.5" is incompatible with requested version "shelljs@^0.6.0"
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "nth-check@1.0.2"
info Reasons this module exists
   - "_project_#cheerio#css-select" depends on it
   - Hoisted from "_project_#cheerio#css-select#nth-check"
info Disk size without dependencies: "24KB"
info Disk size with unique dependencies: "36KB"
info Disk size with transitive dependencies: "36KB"
info Number of shared dependencies: 1
Done in 1.02s.

Main is bumped via PR here. As mentioned in the PR: nth-check is a dependency of cheerio > css-select. Even though our dependency on cheerio@0.22.0 pulls in nth-check@~1.0.1, its signature hasn't changed* in nth-check@2.0.1 and a resolution to bump works. (*) The signature has changed but is backward compatible.

Double checked and don't see breaking changes here. Therefore, we should backport this PR.

Issue Resolve
#1081

Backport PR
#1422

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

@ananzh ananzh added cve Security vulnerabilities detected by Dependabot or Mend backport 1.3 labels Mar 30, 2023
@ananzh ananzh requested a review from joshuarrrr March 30, 2023 02:11
Issue Resolve
opensearch-project#1081

Backport PR
opensearch-project#1422

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
@ananzh ananzh force-pushed the 1.x-bump-nth-check branch from 9ff90f0 to 6d0af4f Compare March 30, 2023 02:12
@codecov-commenter
Copy link

codecov-commenter commented Mar 30, 2023

Codecov Report

Merging #3729 (6d0af4f) into 1.x (bf1c65f) will increase coverage by 0.00%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##              1.x    #3729   +/-   ##
=======================================
  Coverage   67.49%   67.50%           
=======================================
  Files        3044     3044           
  Lines       58692    58692           
  Branches     8902     8902           
=======================================
+ Hits        39617    39619    +2     
+ Misses      16926    16925    -1     
+ Partials     2149     2148    -1     
Flag Coverage Δ
Linux 67.45% <ø> (+<0.01%) ⬆️
Windows 67.45% <ø> (ø)

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

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@joshuarrrr
Copy link
Member

Yeah, https://github.com/fb55/nth-check/releases/tag/v2.0.0 also seems like relatively safe breaking changes

@joshuarrrr
Copy link
Member

WhiteSource check failure can be ignored.

@joshuarrrr joshuarrrr assigned ananzh and unassigned joshuarrrr Mar 30, 2023
@ananzh ananzh added the v1.3.9 label Mar 30, 2023
@ananzh ananzh merged commit 430c93b into opensearch-project:1.x Mar 30, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 30, 2023
Issue Resolve
#1081

Backport PR
#1422

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
(cherry picked from commit 430c93b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ashwin-pc pushed a commit that referenced this pull request Apr 3, 2023
Issue Resolve
#1081

Backport PR
#1422


(cherry picked from commit 430c93b)

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@joshuarrrr joshuarrrr added v1.3.10 and removed v1.3.9 labels Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.3 cve Security vulnerabilities detected by Dependabot or Mend v1.3.10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants