Dropbox link previews in Zulip let users make the server fetch arbitrary pages
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · GHSA-c9j8-628c-f7rm. Fix status from GitHub.
Summary
Zulip server before 12.4 fetches linked Dropbox pages to build link previews, and a crafted link can pass the Dropbox hostname check while the server connects to a different host. A malicious page served from that host can trigger a use-after-free in the lxml parser that extracts the preview image, crashing the application server process. Any user who can send messages, including guests, can trigger this with a web server they control, and it may be possible to run arbitrary code on the server.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the GitHub advisory
### Summary When rendering a message with a link to a Dropbox folder or file, Zulip fetches the linked page to find a preview image. Two bugs in this code let any user who can send messages make the server fetch a page from a host they control, and use that page to crash Zulip's application server processes. These processes handle web and API requests for every organization on the server. A crafted link could pass Zulip's check that it pointed to Dropbox while making the server connect to a different host. A malicious page served from that host could then trigger memory corruption in the parser that extracted the preview image, crashing the process. Each crash only interrupts the request that triggered it, and the server restarts the crashed process. However, an attacker who repeatedly triggers crashes could disrupt service for all users of the server. Severity is high: the attacker only needs an account that can send messages and a web server they control, and the affected previews are enabled by default. It may be possible to exploit this memory corruption to run arbitrary code on the server. ### Details For links to Dropbox shared folders, and to shared files that weren't images or videos, Zulip fetched the linked page while rendering the message and used its OpenGraph image as the preview (`dropbox_media` and `fetch_open_graph_image` in `zerver/lib/markdown/__init__.py`). `dropbox_media` decided whether a link pointed to Dropbox by parsing its hostname with Python's `urlsplit`. The HTTP client that fetched the page parsed some URLs differently, so a crafted URL could appear to have a `dropbox.com` hostname to the check, while the server connected to a different host. This fetch was controlled by the **Show previews of linked images and videos** setting, so it happened even in organizations that had disabled **Show previews of linked websites**. `fetch_open_graph_image` parsed the fetched page incrementally with lxml, removing elements from the document as they were parsed. lxml's underlying parser, libxml2, could still hold a reference to a removed element and use it after its memory had been freed. A page crafted to exploit this use-after-free could corrupt the memory of the process parsing it. ### Impact Any user who can send messages, including guests, could: - make the Zulip server send HTTP requests to a host of their choice, and have it parse the response as a Dropbox page; and - crash the Zulip application server process handling their request, by linking to a page they serve. Because the crash is caused by memory corruption, It may also be possible to exploit this bug to run arbitrary code on the server. Zulip's outgoing HTTP proxy (Smokescreen) denies access to non-public IP addresses by default. On servers using that default configuration, the attacker's requests can only reach public hosts, not internal services. This affects organizations that have **Show previews of linked images and videos** enabled, which is the default, on servers that can make outgoing HTTP requests to the internet. This affects Zulip Server 5.0 through 12.3. Earlier releases are also affected by the flawed Dropbox link check. Zulip Server 13.0-rc1 is not affected. ### Fix Zulip Server 12.4 no longer fetches Dropbox previews while rendering messages. Instead, they are fetched in the background by the same code that generates other link previews, and appear shortly after the message is sent. That code rejects the crafted URLs before fetching anything, and the vulnerable parsing code has been removed. ### Workarounds Disabling **Show previews of linked images and videos** prevents both issues in that organization. On servers that host multiple organizations, it must be disabled in each of them. Alternatively, a server administrator can disable these previews for the whole server by setting `INLINE_IMAGE_PREVIEW = False` in `/etc/zulip/settings.py` and restarting the server. ### Credits Credits to Alex Bouffard ([[email protected]](mailto:[email protected])). ### References - [Configure whether previews of linked images and videos are shown](https://zulip.com/help/image-video-and-website-previews#configure-whether-previews-of-linked-images-and-videos-are-shown)
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Zulip server | < 12.4 | 12.4, 13.0-rc1 | Patch available | GHSA-c9j8-628c-f7rm |
- Zulip server Vendor— Affected < 12.4 Fixed in 12.4, 13.0-rc1 Patch available GHSA-c9j8-628c-f7rm
Remediation
Upgrade Zulip server to version 12.4 or 13.0-rc1, which fix this issue. The sources list no advisory identifier for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-c9j8-628c-f7rm Zulip server Fixed in 12.4, 13.0-rc1 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-c9j8-628c-f7rm
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences