# PYSEC-2026-4041: djust has broken object-level access control (IDOR)

- Database: PyPA
- Published: 2026-10-01
- Modified: 2026-10-01

## Tracked as

- [CVE-2026-61596](https://cve.now/CVE-2026-61596.md): djust has broken object-level access control (IDOR)

## Also published as

- [GHSA-C7C5-5J6R-Q957](https://cve.now/GHSA-C7C5-5J6R-Q957.md) (GitHub)

## Affected versions

- djust (PyPI): fixed in 1.0.7

## Description

### Impact
djust's per-object authorization (`get_object` + `has_object_permission`, ADR-017) was enforced on the WebSocket **mount** and **event** paths but **not** on three other render entry points: (a) the initial **HTTP GET** render, (b) **SPA `url_change`** navigation, and (c) `{% live_render %}` **embedded child** views. An authenticated user could therefore view (and on some paths act on) an object they are not authorized for by loading the page directly, navigating to it via SPA url-change, or composing it as an embedded child — a classic IDOR / broken object-level access control on object-scoped views.

### Patches
Fixed in **djust 1.0.7**. All render entry points now route through a shared `enforce_object_permission` chokepoint: HTTP GET returns **403**, `url_change` emits a `permission_denied` frame and skips the render, and `{% live_render %}` (eager + lazy) refuses the embed. Views without a custom `get_object` are unaffected (no-op).

### Workarounds
No reliable workaround short of upgrading. Do not expose object-scoped views through the HTTP-GET / url_change / live_render paths until patched.

## References

- https://github.com/djust-org/djust/security/advisories/GHSA-c7c5-5j6r-q957
- https://github.com/djust-org/djust
- https://github.com/djust-org/djust/releases/tag/v1.0.7
- https://pypi.org/project/djust
- https://github.com/advisories/GHSA-c7c5-5j6r-q957
- https://nvd.nist.gov/vuln/detail/CVE-2026-61596

Page: https://cve.now/PYSEC-2026-4041

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
