SCA: security update for @koa/cors (GHSA-qxrj-hx23-xp82)

high Tenable Self-Hosted Container Security Plugin ID 418415

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- @koa/cors npm provides Cross-Origin Resource Sharing (CORS) for koa, a web framework for Node.js. Prior to
version 5.0.0, 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. Version 5.0.0 fixes this vulnerability.
(CVE-2023-49803)

See Also

https://github.com/advisories/GHSA-qxrj-hx23-xp82

Plugin Details

Severity: High

ID: 418415

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3.6

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:C/A:N

CVSS Score Source: CVE-2023-49803

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 12/11/2023

Vulnerability Publication Date: 12/11/2023

Reference Information

CVE: CVE-2023-49803

cwe: CWE-346