fix(pdf): security hardening — hex-encoded link URIs, strict branding URL schema, branding and labels re-validated at export, PNG dimension budget, CSS escape and parenthesis rules in the sanitiser, finite raster size, file size checked before read

This commit is contained in:
bchanot committed 2026-10-11 13:54:18 +02:00
1 parent 4930704d8a
commit 1f417b21fd
12 files changed
+437 -25

No files matched your search

+2
View File
@@ -25,6 +25,8 @@ export type ArchiveExportErrorKind =
| 'snapshot_too_large'
| 'sheet_mismatch'
| 'too_many_pages'
/** The branding or the label set fails its schema (URLs included). */
| 'branding_invalid'
export class ArchiveExportError extends Error {
constructor(