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

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 42% of CVEs (2026-11-30)
- Published: 2023-02-07T18:48:29.870Z
- Modified: 2026-06-17T05:36:03.840Z
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- zulip zulip: >= 04cf68b, < 2f6c5a8
- zulip zulip_server: 2023-01-09

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/zulip/zulip/security/advisories/GHSA-wm83-3764-5wqh> (patch, vendor-advisory)
- <https://github.com/zulip/zulip/commit/04cf68b45ebb5c03247a0d6453e35ffc175d55da> (product)
- <https://github.com/zulip/zulip/commit/2f6c5a883e106aa82a570d3d1f243993284b70f3> (patch)
- <https://zulip.readthedocs.io/en/latest/production/upgrade-or-modify.html#upgrading-from-a-git-repository> (not-applicable)

## Sources

- CVE List: [CVE-2023-22735](https://www.cve.org/CVERecord?id=CVE-2023-22735), CVE Terms of Use, modified 2025-03-10
- NVD: [CVE-2023-22735](https://nvd.nist.gov/vuln/detail/CVE-2023-22735), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22735 · Whole record: https://cve.day/CVE-2023-22735.json · Rebuilt by cve.day 2026-11-25T22:58:21.858Z
