🔒 Security
- Sanitize HTML rendered from Markdown descriptions, fixing a stored XSS (GHSA-2527-wvp8-x7r8) - reported by @Jeg4nX19 (735b6)
- Raw HTML in OpenAPI
descriptionfields is now sanitized by default: formatting markup (<br>,<details>, tables, …) is kept; scripts, event handlers, embeds and unsafe URLs are removed. - New
markdown.sanitizetheme option:falsedisables sanitization (only for fully trusted specs), or pass a custom(html) => stringfunction. See useTheme. - The default operation link HTML now escapes its
href, method and title.
- Raw HTML in OpenAPI
All users rendering specs they don't fully control should upgrade.