Does KrakenJS automatically escape Dust.js output used for ARIA attributes?
0 reputation · 01 Apr 2021, 17:50 UTC
An application renders user-generated strings into Dust.js templates served by KrakenJS, including values placed inside ARIA attributes such as aria-label and aria-describedby. The goal is to determine whether the framework or template engine encodes these values by default, or whether the markup remains vulnerable to attribute injection.
KrakenJS delegates view rendering to Dust.js and does not provide an accessibility sanitization layer. Dust.js escaping behavior can differ by dustjs-linkedin version and by how KrakenJS configures the engine, so automatic HTML escaping cannot be assumed without checking the installed dependency tree.
Does Dust.js escape variables when they are written into HTML attribute contexts rather than element text? Does KrakenJS apply any additional encoding for ARIA attributes specifically? Which template helper or configuration controls attribute-level escaping in this stack?