Automated Threat Modeling

Overview of CVE-2026-47810: Salt CherryPy REST API CORS Origin Reflection and Preflight Session Flaw

A brief summary of CVE-2026-47810, a CVSS 8.8 CORS misconfiguration in the Salt CherryPy REST API that let any website make credentialed requests through an administrator's browser session. Covers the root cause, patch behavior in 3006.31, 3007.18 and 3008.6, and practical detection checks.

CVE Analysis

8 min read

Gaurav Sarraf
Gaurav Sarraf

2026-12-03

Overview of CVE-2026-47810: Salt CherryPy REST API CORS Origin Reflection and Preflight Session Flaw

Introduction

A recently patched CORS flaw in Salt's CherryPy REST API let any website that a logged-in Salt administrator happened to visit send credentialed requests to salt-api and read the responses. Because salt-api runs on the Salt master, the system that coordinates configuration management across a fleet, this turned ordinary web browsing by an administrator into a path toward the infrastructure management plane.

Salt is an open-source automation and configuration management framework. Salt Project says its technology powers VMware Salt and appears in products from companies including Cisco, Cloudflare, Juniper, Nutanix, and SUSE. The project passed from SaltStack to VMware in 2020 and then to Broadcom in 2023, which now sponsors and contributes to it.

VMware, acting as CNA, scored CVE-2026-47810 at CVSS 3.1 8.8 and classified it as CWE-942 (permissive cross-domain policy with untrusted domains). NVD published the record on December 3, 2026, and had not yet supplied its own assessment. Fixes shipped on December 1, 2026 in Salt 3006.31, 3007.18 and 3008.6. Salt Project credits Stepan Fedorov with the report.

Technical information

Root cause: two flaws in cors_tool()

The CherryPy flavor of salt-api (salt/netapi/rest_cherrypy) handles CORS in a hook called cors_tool(). According to the release notes, this hook contained two independent problems.

1. Unconditional Origin reflection with credentials. The tool took whatever the browser sent in the Origin request header and placed it into the Access-Control-Allow-Origin response header. At the same time, it returned Access-Control-Allow-Credentials: true.

The CORS specification deliberately forbids combining a wildcard origin with credentials, because "allow everyone" and "allow cookies" together would let any site act as the user. Reflecting the caller's exact origin achieves the same effect while technically avoiding the wildcard. The browser sees a specific origin that matches the requesting page, plus permission to include credentials, so it attaches the administrator's salt-api session cookie and exposes the response body to the calling script. In practice, every website on the internet became a trusted, credentialed origin.

2. Session assignment on unauthenticated preflight. The OPTIONS preflight handler gave the request a session token without checking any credentials. Preflight requests exist only to negotiate CORS permissions, and they should never grant access. Assigning a session here skipped the authentication check entirely. The Salt advisory states that the preflight handler can bypass the authentication check, but it does not publish the exact requests or follow-up steps needed to reproduce the bypass, so we do not speculate on them here.

The API documentation already recommended authenticating with the X-Auth-Token header. The browser does not attach a custom header automatically the way it attaches a cookie, so a malicious page has no way to supply a victim's token on its own. Cookie-based sessions are different. The browser sends them with any credentialed request to the salt-api host, and the reflected origin plus Access-Control-Allow-Credentials: true let the attacker's script read what came back.

Attack flow

Based on the vendor and NVD descriptions, the cross-origin abuse path looks like this:

  1. An administrator authenticates to salt-api from a browser and holds a valid session cookie.
  2. While that session is active, the administrator visits a page controlled by an attacker (or a compromised third-party site).
  3. JavaScript on that page issues a credentialed cross-origin request to the salt-api endpoint.
  4. The vulnerable cors_tool() echoes the attacker's origin in Access-Control-Allow-Origin and returns Access-Control-Allow-Credentials: true.
  5. The browser sends the administrator's session cookie, then hands the authenticated response to the attacker's script, which can read salt-api data and issue further requests in the administrator's context.

Separately, the preflight handler's session assignment on unauthenticated OPTIONS requests provides a route around the authentication check itself.

Scoring

The vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H: network reachable, low attack complexity, no privileges required by the attacker, and user interaction required (the administrator must load the attacker's page). Confidentiality, integrity and availability impacts are all rated high, which is consistent with an API that controls the Salt master.

Patch information

The issue is fixed in Salt 3006.31 (LTS), 3007.18 (STS) and 3008.6 (LTS), all released December 1, 2026. Salt tracks it as issue #69517, whose "Fixed in" field lists the same three releases. The issue displays as closed "not planned" only because of an unrelated triage comment. The fix did ship, and the 3006.31 changelog lists it under #69517. No public fix commit or pull request is linked, so the description below comes from the advisory, the issue and the release notes rather than a diff.

The patch makes three changes:

  • cors_origin is now an allowlist. salt-api no longer echoes the Origin header. Only origins listed in the rest_cherrypy cors_origin setting receive an Access-Control-Allow-Origin header. Any other site gets no CORS approval, so the browser will not let its script read the response.
  • Preflight session assignment is removed. OPTIONS requests no longer create or attach a session token. A preflight now only negotiates CORS.
  • cors_origin: '*' is handled explicitly. A wildcard allows any origin but is never combined with credentials, matching how rest_tornado already documented it.

Breaking change with no opt-out

Browser clients that send the session cookie to salt-api from another origin are affected. Clients using the X-Auth-Token header need no changes. Cookie-based cross-origin clients must either switch to X-Auth-Token or list their trusted origins in the master config. The release notes give this example:

rest_cherrypy: cors_origin: - https://salt.yourcompany.com

Other breaking changes in this release ship with temporary opt-out settings such as events_insecure_auth and discovery_insecure_auth. This one does not. The maintainers chose not to provide any way to restore the old allow-any-origin behavior, because it let any website read authenticated salt-api data through a logged-in user's browser. After the upgrade, no configuration value reopens the hole.

The fix is on the master side only, since that is where salt-api runs. Upgrade masters that run salt-api with the CherryPy interface. Minions do not need this upgrade for this CVE. For rollout, Brandefense recommends recording installed versions and roles, backing up configuration and keys, upgrading masters before minions, and checking service operation and representative jobs afterward.

Detection methods

No ready-made signatures exist yet. None of the reviewed sources includes a YARA, Sigma, Snort/Suricata or Nuclei rule, and none lists IoCs. The bug is still easy to observe, because it shows up directly in salt-api response headers. We suggest combining three checks.

1. Version triage

Brandefense recommends recording salt --versions-report output on each master, which is the host that matters because salt-api runs alongside it. Compare against the affected ranges in the next section. Treat any master in an affected range that also runs salt-api with rest_cherrypy as exposed.

There is one inconsistency in the sources. The current rest_cherrypy docs say the CORS change landed in 3006.28, while the CNA and NVD record says releases before 3006.31 are affected. When deciding whether a host is safe, go by the advisory and NVD ranges.

2. Behavioral probes

Send a request to the salt-api endpoint with an Origin header set to a domain you control that is clearly untrusted, then inspect the CORS response headers:

  • Vulnerable: your untrusted origin is reflected in Access-Control-Allow-Origin together with Access-Control-Allow-Credentials: true. The docs say unpatched builds did this for any origin, unconditionally.
  • Fixed, cors_origin unset (default): only same-origin requests get a permissive response. Other origins receive Access-Control-Allow-Origin: * and no Access-Control-Allow-Credentials header.
  • Fixed, allowlist configured: your origin is reflected only if it appears in cors_origin.

The credentials header is the most reliable signal. An arbitrary reflected origin paired with Allow-Credentials: true is the vulnerable pattern.

A second probe targets the preflight bug. Send an unauthenticated OPTIONS request and check whether the response sets a session token or cookie. A new session in reply to an anonymous preflight points to an unpatched build. This is an inference from the NVD description rather than a vendor-published test.

Both probes send no Salt commands and need no credentials, so they are reasonably safe to run across an estate.

3. Configuration audit and acceptance testing

Review the rest_cherrypy block on each master. On patched builds, cors_origin should be unset or list only the specific internal origins that need cookie-based browser access. A value of '*' does not restore credentialed access, but it permits any origin and is worth reviewing. Following Brandefense's guidance, confirm both that approved browser origins still work and that unlisted origins fail, and keep the results as evidence that the fix is in effect, not just installed.

4. Hunting for possible abuse

Without vendor-published indicators, hunting relies on how the attack would look in salt-api or reverse proxy logs:

  • requests whose Origin or Referer names a domain outside your Salt tooling, especially when carrying a valid admin session cookie
  • bursts of unauthenticated OPTIONS preflight requests to the API from browsers
  • privileged API calls (job execution, key management) that coincide with an administrator browsing the web rather than using an approved Salt console

Default access logs often omit Origin, so configure your proxy or WAF to record it. Treat matches as leads, not proof of exploitation.

Affected systems and versions

The CVE record lists the following Salt versions as affected:

  • 3006.0 up to but not including 3006.31 (LTS)
  • 3007.0 up to but not including 3007.18 (STS)
  • 3008.0 up to but not including 3008.6 (LTS)

The vulnerable configuration is a Salt master running salt-api with the CherryPy (rest_cherrypy) interface. Minions are not the affected component. The record gives the default status of other versions as unknown, so these ranges should not be read as an exhaustive assessment of every other release.

Vendor security history

In May 2020, the Canadian Centre for Cyber Security reported active exploitation of older, separate Salt vulnerabilities, including incidents that deployed unauthorized cryptocurrency mining software. That history shows Salt masters have been attractive targets, but it does not establish exploitation of CVE-2026-47810. As of December 3, 2026, the reviewed sources contain no verified report of in-the-wild exploitation, no named threat actor, no exploit sample and no CVE-specific indicators for this issue. That reflects limited visibility, not proof of absence. Salt Project disclosed this issue through a coordinated advisory with fixes across all three supported branches.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization