github enzonotario/vitepress-openapi v0.2.16

one hour ago

   🔒 Security

  • Sanitize HTML rendered from Markdown descriptions, fixing a stored XSS (GHSA-2527-wvp8-x7r8)  -  reported by @Jeg4nX19 (735b6)
    • Raw HTML in OpenAPI description fields is now sanitized by default: formatting markup (<br>, <details>, tables, …) is kept; scripts, event handlers, embeds and unsafe URLs are removed.
    • New markdown.sanitize theme option: false disables sanitization (only for fully trusted specs), or pass a custom (html) => string function. See useTheme.
    • The default operation link HTML now escapes its href, method and title.

All users rendering specs they don't fully control should upgrade.

    View changes on GitHub

Don't miss a new vitepress-openapi release

NewReleases is sending notifications on new releases.