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

don't work so hard; CVE-2023-26115 was fixed upstream #2658

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

zburke
Copy link
Member

@zburke zburke commented Mar 15, 2024

We were subject to CVE-2023-26115 via a transitive vulnerability from eslint > optionator > word-wrap. optionator noticed the same vulnerability and made the same fix in 06fd3a so the best thing we can do here is ... nothing.

Include `@aashutoshrathi/word-wrap` as a dev-dep in addition to
including it in `resolutions` where it is used as an alias to replace
the (unmaintained) `word-wrap`. Just like peer-deps, yarn does not satisfy
resolution-deps, so if we want that reference in `resolutions` to be
resolvable, we need to _actually_ depend on it elsewhere. `word-wrap` is a
transitive dep via eslint > optionator, so I added
`@aashutoshrathi/word-wrap` as a dev-dep.

Additionally, unrelated, it is important to leave `--frozen-lockfile` in
the `Run yarn install` instructions. Without it, there's not much point
in committing `yarn.lock` because you would be free to update
`package.json` by changing versions or even adding new dependencies and
CI wouldn't warn you that `yarn.lock` and `package.json` were out of
sync. This breaks the promise of reprodicble builds that committing
`yarn.lock` provides.
@zburke zburke changed the title Word wrap dev dep don't work so hard; this was fixed upstream Mar 15, 2024
@zburke zburke changed the title don't work so hard; this was fixed upstream don't work so hard; CVE-2023-26115 was fixed upstream Mar 15, 2024
Copy link

sonarcloud bot commented Mar 15, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@manvendra-s-rathore manvendra-s-rathore merged commit 2322d52 into UIU-3072 Mar 15, 2024
5 checks passed
manvendra-s-rathore added a commit that referenced this pull request Mar 15, 2024
* UIU-3072 fix linting issues

* fix FeeFineSettings test

* fix lint issues

* update loanDetails test case

* revert LoanDetails test case fix

* update changeLog.md

* resolve review comments

* update build-npm.yml

* remove yarn.lock

* revert build-npm.yml change

* enable yarn.lock file update

* updated yarn.lock file

* remove empty line

* include @aashutoshrathi/word-wrap as a dev-dep (#2657)

Include `@aashutoshrathi/word-wrap` as a dev-dep in addition to
including it in `resolutions` where it is used as an alias to replace
the (unmaintained) `word-wrap`. Just like peer-deps, yarn does not satisfy
resolution-deps, so if we want that reference in `resolutions` to be
resolvable, we need to _actually_ depend on it elsewhere. `word-wrap` is a
transitive dep via eslint > optionator, so I added
`@aashutoshrathi/word-wrap` as a dev-dep.

Additionally, unrelated, it is important to leave `--frozen-lockfile` in
the `Run yarn install` instructions. Without it, there's not much point
in committing `yarn.lock` because you would be free to update
`package.json` by changing versions or even adding new dependencies and
CI wouldn't warn you that `yarn.lock` and `package.json` were out of
sync. This breaks the promise of reprodicble builds that committing
`yarn.lock` provides.

* don't work so hard; CVE-2023-26115 was fixed upstream (#2658)

* include @aashutoshrathi/word-wrap as a dev-dep

Include `@aashutoshrathi/word-wrap` as a dev-dep in addition to
including it in `resolutions` where it is used as an alias to replace
the (unmaintained) `word-wrap`. Just like peer-deps, yarn does not satisfy
resolution-deps, so if we want that reference in `resolutions` to be
resolvable, we need to _actually_ depend on it elsewhere. `word-wrap` is a
transitive dep via eslint > optionator, so I added
`@aashutoshrathi/word-wrap` as a dev-dep.

Additionally, unrelated, it is important to leave `--frozen-lockfile` in
the `Run yarn install` instructions. Without it, there's not much point
in committing `yarn.lock` because you would be free to update
`package.json` by changing versions or even adding new dependencies and
CI wouldn't warn you that `yarn.lock` and `package.json` were out of
sync. This breaks the promise of reprodicble builds that committing
`yarn.lock` provides.

* we don't have to work so hard; this was fixed upstream

* include @aashutoshrathi/word-wrap version

---------

Co-authored-by: Zak Burke <zburke@ebsco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants