Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1xeHJqLWh4MjMteHA4Ms4AA3qz
Overly permissive origin policy
Currently, the middleware operates in a way that if an allowed origin is not provided, it will return an Access-Control-Allow-Origin
header 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.
Permalink: https://github.com/advisories/GHSA-qxrj-hx23-xp82JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xeHJqLWh4MjMteHA4Ms4AA3qz
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 12 months ago
Updated: 12 months ago
CVSS Score: 8.6
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
Identifiers: GHSA-qxrj-hx23-xp82, CVE-2023-49803
References:
- https://github.com/koajs/cors/security/advisories/GHSA-qxrj-hx23-xp82
- https://github.com/koajs/cors/commit/f31dac99f5355c41e7d4dd3c4a80c5f154941a11
- https://nvd.nist.gov/vuln/detail/CVE-2023-49803
- https://github.com/advisories/GHSA-qxrj-hx23-xp82
Blast Radius: 37.7
Affected Packages
npm:@koa/cors
Dependent packages: 897Dependent repositories: 23,997
Downloads: 2,815,212 last month
Affected Version Ranges: < 5.0.0
Fixed in: 5.0.0
All affected versions: 2.2.1, 2.2.2, 2.2.3, 3.0.0, 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 4.0.0
All unaffected versions: 5.0.0