CVE-2016-10549
MEDIUM 4.4CVSS 3.0Sails before 0.12.7 vulnerable to Broken CORS
Sails is an MVC style framework for building realtime web applications. Version 0.12.7 and lower have an issue with the CORS configuration where the value of the origin header is reflected as the value for the Access-Control-Allow-Origin header. This would allow an attacker to make AJAX requests to vulnerable hosts through cross site scripting or a malicious HTML Document, effectively bypassing the Same Origin Policy. Note that this is only an issue when allRoutes is set to true and origin is set to * or left commented out in the sails CORS config file. The problem can be compounded when the cors credentials setting is not provided. At that point authenticated cross domain requests are possible.
- Published
- 31 May 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-284CWE-79
- Also known as
- GHSA-qmv4-jgp7-mf68
- Sources
- NVDJSONOSV GHSA-qmv4-jgp7-mf68JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 4.4 | CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:N/AC:H/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sailsjs | sailscpe:2.3:a:sailsjs:sails:*:*:*:*:*:node.js:*:* |
<= 0.12.7 | |
| OSV | npm | sails | < 0.12.7 | 0.12.7 |
References
- http://sailsjs.org/documentation/concepts/security/cors · Vendor Advisory, WEB
- http://sailsjs.org/documentation/reference/configuration/sails-config-cors · Vendor Advisory, WEB
- https://nodesecurity.io/advisories/148 · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-10549 · ADVISORY
- https://github.com/balderdashy/sails/commit/0057123a0321be6758845abbeb4290bf418ce542 · WEB
- https://github.com/balderdashy/sails · PACKAGE
- https://github.com/balderdashy/sails/releases/tag/v0.12.7 · WEB
- https://www.npmjs.com/advisories/148 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 May 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Feb 2019)