Skip to content

[DEPR]: UX reference template view (/template/<path>) and ux/reference templates #582

Open

Description

@bmtcril

RFC Start Date

2026-11-23

Target Plan Accepted Date

2026-12-07

Target Transition Unblocked Date

2026-12-07

Earliest Breaking Changes Unblocked Date

2026-12-07

Rationale

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.

  • The reference templates it serves have not had a functional change in years, and the libraries they demonstrate are themselves being deprecated ([DEPR]: edx-bootstrap npm package #390, [DEPR]: edx-pattern-library npm references #391).
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    depr

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions