-
Notifications
You must be signed in to change notification settings - Fork 916
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-2020-15366][1.x] Bump ajv from 4.11.8 to 6.12.6 #3769
Conversation
Add a resolution to bump ajv from 4.11.8 to 6.12.6. Issue Resolve opensearch-project#1154 Signed-off-by: Anan Zhuang <[email protected]>
Codecov Report
@@ Coverage Diff @@
## 1.x #3769 +/- ##
==========================================
- Coverage 67.49% 67.45% -0.05%
==========================================
Files 3044 3044
Lines 58692 58692
Branches 8902 8902
==========================================
- Hits 39617 39588 -29
- Misses 16926 16952 +26
- Partials 2149 2152 +3
Flags with carried forward coverage won't be shown. Click here to find out more. |
Looking at |
All checks passed. |
@ananzh Converting to draft until you have a chance to address Miki's comments. |
Signed-off-by: Josh Romero <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ISM still uses it and the new viz builder utilizes it but we should be conscience about this and not forward port this PR. But I don't think there is any issue with this and seems safe.
Add a resolution to bump ajv from 4.11.8 to 6.12.6. Issue Resolve #1154 Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Josh Romero <[email protected]> Co-authored-by: Josh Romero <[email protected]> (cherry picked from commit 7786641) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
Add a resolution to bump ajv from 4.11.8 to 6.12.6. Issue Resolve #1154 Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: Josh Romero <[email protected]> Co-authored-by: Josh Romero <[email protected]> (cherry picked from commit 7786641) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
An issue was discovered in
ajv.validate()
inajv
(aka Another JSON Schema Validator) 6.12.2. To fix this issue, the minimum required version is 6.12.3. In 1.x, there are two ajv versions, 6.12.6 and 4.11.8.ajv @4.11.8
is brought from#sass-lint#eslint#table
. There are breaking changes (V6.0.0, V5.0.0) between version 4 to 6.However,
ajv
is only used directly by table for test purpose. In 1.x, we havetable
3.8.3 andajv
is only used in 2 test files.Since the tests are part of the
table
package and are not part of OpenSearch Dashboards application, bumpingajv
to version 6 should not have any direct impact on our application. We could also bumpajv
to"ajv": "^6.12.6"
intable
v3.8.3. According to table's scripts section:We could run
npm test
:We could also run
npm run make-validators
:As shown, the
ajv
is used only for test and schema validation and only affects table package’s tests. Therefore, in OpenSearch Dashboards, we could add a resolution to bumpajv
to 6.12.6 .Issues Resolved
#1154
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr