chore(deps): update dependency @koa/cors to v5 [security]#221
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency @koa/cors to v5 [security]#221renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
o-star
approved these changes
Aug 20, 2024
349ca95 to
c4c5090
Compare
e619d02 to
6df3f3b
Compare
6df3f3b to
da11a75
Compare
da11a75 to
a272444
Compare
a272444 to
c95d8b2
Compare
c95d8b2 to
3aa51f8
Compare
3aa51f8 to
2f90b52
Compare
2f90b52 to
ccb3803
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.0.0→5.0.0Overly permissive origin policy
CVE-2023-49803 / GHSA-qxrj-hx23-xp82
More information
Details
Currently, the middleware operates in a way that if an allowed origin is not provided, it will return an
Access-Control-Allow-Originheader with the value of the origin from the request. This behavior completely disables one of the most crucial elements of browsers - the Same Origin Policy (SOP), this could cause a very serious security threat to the users of this middleware.If such behavior is expected, for instance, when middleware is used exclusively for prototypes and not for production applications, it should be heavily emphasized in the documentation along with an indication of the risks associated with such behavior, as many users may not be aware of it.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
koajs/cors (@koa/cors)
v5.0.0Compare Source
==================
others
f31dac9] - Merge pull request from GHSA-qxrj-hx23-xp82 (fengmk2 <suqian.yf@antgroup.com>)Configuration
📅 Schedule: (in timezone America/Los_Angeles)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.