Polotno

Changelog · Oct 22, 2026

Polotno 4.18: safer rendering of untrusted designs, faster undo and redo

polotno-node can refuse local files and private-network requests in designs your users upload, and exporters control which URLs they download. Undo and redo are much faster.

This release hardens how Polotno handles design JSON from untrusted sources, in the editor, polotno-node and the exporters.

If your server renders designs that your users create or upload, use these settings:

tsx
// polotno-node
await instance.jsonToImageBase64(json, {
  blockPrivateNetwork: true, // no requests to localhost or private networks
  allowLocalFiles: false, // reject designs that reference local files
});

// @polotno/pdf-export and @polotno/pptx-export in Node
await jsonToPDF(json, './out.pdf', { blockPrivateNetwork: true });
await jsonToPPTX(json, './out.pptx', { blockPrivateNetwork: true });

This settings will be turned true by default in the next major version.
Also restrict outbound network access for the render process at the container or firewall level. Full guidance: Server-side rendering with Node.js.

Highlights

Safer server rendering

In polotno-node, allowLocalFiles: false rejects designs with file: sources, and blockPrivateNetwork and fetchGuard work in every render method, not only video export. polotno-node/ssrf-guard runs the same URL check on your own fetches of design URLs. Server-side rendering with Node.js

URL control in exporters

In Node, @polotno/pptx-export takes blockPrivateNetwork and fetchGuard, and SVG and HTML export take fetchGuard, to control which URLs the export downloads.

Faster undo and redo

Undo and redo are much faster on large documents.

Breaking changes

  • polotno-node 3.15.0: Scripts in instance.run() can no longer load file: URLs directly. Put the file in the design, or read it in Node and pass its contents in.

All changes

polotno 4.18.0 / 3.18.0

  • store.toDataURL(), store.toBlob() and store.saveAsImage() now throw EXPORT_FAILED (reason empty-output) when the browser cannot encode the canvas, for example when it is too large.
  • Undo and redo are much faster on large documents.
  • Fixed text with < and > characters losing words, in the editor and every exporter.
  • Fixed a crash when Duplicate was clicked in the timeline on an element that was just deleted.
  • Fixed an unhandled error when a text template fails to load.

polotno-node 3.15.0

  • Bundles polotno 4.18.0.
  • Added allowLocalFiles to every render method. Set false to reject designs with file: sources.
  • blockPrivateNetwork and fetchGuard now work in every render method, not only video export.
  • Added polotno-node/ssrf-guard: the same URL check, for your own fetches of design URLs.
  • Blocked requests are logged with console.warn.
  • Video media conversion no longer blocks the Node process. A probe stops after 30 seconds and a conversion after 10 minutes.

@polotno/pptx-export 0.10.0

  • Added blockPrivateNetwork and fetchGuard (Node): control which URLs the export downloads.
  • Fixed fitted text size changing with the designs the same process exported before.

@polotno/svg-export 0.11.0, @polotno/html-export 0.10.0

  • Added fetchGuard (Node): control which URLs the export downloads.

@polotno/pdf-export 0.15.2

  • Fixed exports failing on fonts with a damaged glyph, common in fonts taken from imported PDFs.

@polotno/psd-import 0.3.1

  • PSDs too large to parse now fail with IMPORT_FAILED reason too-large.

@polotno/svg-import 0.2.3

  • Different import edge case fixes.

Embed creative infrastructure into your product

TRUSTED BY

100,000+

CREATORS

300+

BUSINESSES

ExpediaUnbounceLovePopPostGridPredis.ai