Skip to content

v3.5.18

Latest

Choose a tag to compare

@awcodes awcodes released this 27 Nov 16:55

Security

  • Store media modal uploads under the extension of their detected content. Previously, a file accepted by its content (for example a PNG or SVG) but named page.html or script.js was stored as .html / .js on the public disk and served from the app's own origin. Thanks to @iefken for the responsible report. A security advisory will follow.
  • Only allow http(s) and scheme-less iframe sources in YouTube and Vimeo embeds. Previously, a javascript: URL entered as a video URL was stored and executed for visitors of the rendered page and for panel users opening the record. Thanks to @iefken for the responsible report. A security advisory will follow.
  • Document in the README that SVG uploads can contain script; remove image/svg+xml from accepted_file_types if editors are not fully trusted.

Behaviour changes:

  • An upload whose name does not match its content is stored with its content's extension (e.g. a JPEG named scan.png becomes .jpg); a file without an extension gets one. Uploads with matching names are unchanged.
  • A YouTube or Vimeo embed URL that is not http(s) is dropped and the iframe renders without a src; an embed without a src no longer throws. Normal embed URLs are unchanged.

Full Changelog: v3.5.17...v3.5.18