{"version":"2.1.330","anchor":"plugin-hook-sandbox-abortcontrollerabort-wrapped-and-a-a","canonical_anchor":"plugin-hook-sandbox-abortcontrollerabort-wrapped-and-a-a","heading":"Plugin hook sandbox now routes abort and timer cancelling through a guard","tier":"internal","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/plugin-hook-sandbox-abortcontrollerabort-wrapped-and-a-a","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Plugin hook sandbox now routes abort and timer cancelling through a guard\n\nThe sandbox that runs plugin hook code now wraps abort calls and timer cancelling, making it harder for plugin code to break out\n\n**What**\n\nSome plugins run hook code inside a sandbox, which is a walled-off area that limits what that code can reach. The setup of that sandbox now:\n\n- wraps the standard way of aborting (cancelling) work in progress, so every abort passes through a guard first\n\n- sends the cancel step of `clock.after` and `clock.every` timers through the same guard\n\n- passes one more setting to the audio helper that plugin code can use\n\n**Why**\n\nThese changes harden the sandbox. Plugin code has fewer ways to escape it, for example by triggering an abort from deep inside a long chain of calls.\n\n- Area: Plugins\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}