CVE-2016-10549: Sails before 0.12.7 vulnerable to Broken CORS
N/A
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.48618%
CWE
Published
2/18/2019
Updated
1/11/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
-
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
sails | npm | < 0.12.7 | 0.12.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests when Sails' CORS configuration uses dangerous defaults (allRoutes:true + origin:'*'). The initialize
function in lib/hooks/cors/index.js
is responsible for processing these configurations. The commit diff shows added warnings for unsafe combinations, confirming this is where permissive settings are evaluated. While no single function contains a traditional code flaw, the CORS hook's configuration handling logic becomes vulnerable when misconfigured, making the initialize
routine the focal point of the security weakness.