@asyncapi/generator@3.2.3
Patch Changes
-
69c2fa1: The
mapBaseUrlToFolderresolver now rejects$refs that resolve outside the configured base folder. Previously a reference such ashttps://schema.example.com/crm/../../../etc/passwdwas passed through unnormalized, letting a malicious AsyncAPI document read files outside the mapped folder (path traversal). References that escape the base folder are now blocked with an explicit error.This only affects references that start with the mapped base URL and then use
../to climb out of the mapped folder (e.g.https://schema.example.com/crm/../shared/common.jsonreaching a sibling folder). If you relied on this to reference files outside the mapped folder, map a higher-level base instead — e.g. maphttps://schema.example.com/to./schemas/and referencehttps://schema.example.com/shared/common.jsondirectly — so the resolved paths stay within the mapped folder.