Sanic 24.12
Last reviewed Sep 24, 2026
Prompt Details
Prompt Composition
2prompts
- Python 3155 lines · 3.8K tokens
- Sanic 24.1275 lines · 3.6K tokens
Total230 lines · 7.4K tokens
CWE Coverage
- 20
- 23
- 36
- 59
- 78
- 79
- 89
- 95
- 113
- 117
- 208
- 209
- 214
- 250
- 287
- 295
- 306
- 319
- 328
- 338
- 346
- 347
- 352
- 367
- 379
- 384
- 409
- 416
- 426
- 427
- 444
- 470
- 488
- 502
- 532
- 601
- 611
- 613
- 614
- 674
- 732
- 749
- 770
- 772
- 776
- 807
- 829
- 862
- 916
- 918
- 942
- 1004
- 1104
- 1275
- 1284
- 1333
- 1395
Prompt Preview
Apply these rules to applications using the Sanic 24.12 LTS line after the Python baseline; they were checked against 24.12.1. Check separately installed extensions and the actual serving stack against their own versions.
Version and protocol boundary
- Lock Sanic to one exact 24.12 LTS release in the lock file and move to each new 24.12 patch release as it ships. Sanic gives LTS releases bug and security fixes for 24 months and backports them as patch releases on the LTS line, while an interim release is supported only until the next release, so an interim v24 release doesn't receive the LTS fixes.
- Use a maintained Python minor from the tag's stable 3.9–3.13 test matrix and test the application on it. Python 3.9 and 3.10 are end-of-life, which leaves 3.11–3.13. The release notes require Python 3.9 or newer despite stale
python_requires >=3.8metadata; neither that metadata nor the Python baseline establishes compatibility with newer minors. - Preserve all four 24.12.1 security-patch behaviors: reject chunked trailers instead of reparsing them as another request, reject request-target bytes longer than 65,535, remove CR, LF, and NUL from response header names and values, and restrict Inspector action dispatch to public methods.
- Plan migration before 24.12 LTS support ends in December 2026; do not run the line after its support window.
Routes, requests, and authorization
- Build routes from trusted code with explicit methods, constrained path converters, and deliberate trailing-slash and version-prefix policies. Apply the same authorization to aliases,