SCA: security update for @elysiajs/cors (GHSA-f9qj-4c5x-cpcw)

medium Tenable Self-Hosted Container Security Plugin ID 435022

Description

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

- An Origin Validation Error in the elysia-cors library thru 1.3.0 allows attackers to bypass Cross-Origin
Resource Sharing (CORS) restrictions. The library incorrectly validates the supplied origin by checking if
it is a substring of any domain in the site's CORS policy, rather than performing an exact match. For
example, a malicious origin like "notexample.com", "example.common.net" is whitelisted when the site's
CORS policy specifies "example.com." This vulnerability enables unauthorized access to user data on sites
using the elysia-cors library for CORS validation. (CVE-2025-50864)

See Also

https://github.com/advisories/GHSA-f9qj-4c5x-cpcw

Plugin Details

Severity: Medium

ID: 435022

Version: Revision 1.12

Type: Local

Family: SCA Checks

Published: 8/21/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.92

Vendor

Vendor Severity: Medium

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-2025-50864

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

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

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

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Threat Score: 2.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 8/20/2025

Vulnerability Publication Date: 8/20/2025

Reference Information

CVE: CVE-2025-50864