You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DEPR]: UX reference template view (/template/<path>) and ux/reference templates #582
openedx.core.djangoapps.debug.views.show_reference_template renders any Mako template in the LMS or CMS lookup path, using the request's query string as the template context. It was added in 2016 so the UX team could build static reference pages for the edX Pattern Library and edx-bootstrap.
New UI work happens in MFEs and Paragon, not in Mako reference pages.
The view is a standing risk. It was routed in production until October 2026, which caused a reflected XSS (now patched). It is now routed only when DEBUG is on, but it still renders arbitrary templates with attacker-controllable context on any site running in debug mode.
Removing unused code is safer than continuing to guard it.
Description
In openedx/openedx-platform:
openedx/core/djangoapps/debug/ (the view and its tests)
The template/<path:template> route and its imports in lms/urls.py and cms/urls.py
lms/templates/ux/reference/ (6 templates)
cms/templates/ux/reference/ (4 templates)
References to openedx/core/djangoapps/debug/ in .coveragerc-local, pyproject.toml, .github/workflows/pylint-checks.yml and .github/workflows/unit-test-shards.json
lms/djangoapps/debug/ is a separate app and is not part of this removal.
Task List
Announce on the forum and in Slack #open-edx-deprecation
Remove the view, routes, templates and config references from openedx-platform
Activity