textarea-resize
Pass
Audited by Gen Agent Trust Hub on Dec 5, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script performs prototype patching by modifying the
valueproperty descriptor of the globalHTMLTextAreaElement. This is a functional requirement used to ensure the textarea height is recalculated when its content is updated via JavaScript code rather than user input. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from the DOM to dynamically generate and inject CSS styles into the document head.
- Ingestion points: The value of the
data-textareaautoresizeattribute is read from textarea elements intextareaResize.tsandtextareaResize.js. - Boundary markers: None; the attribute value is interpolated directly into CSS selectors.
- Capability inventory: The skill can create and modify
<style>elements in the document head via theaddCssfunction inaddCss.ts. - Sanitization: While the documentation advises using only alphanumeric characters and hyphens for the attribute value, the code does not enforce this via regex, creating a surface where malicious attribute values could potentially inject arbitrary CSS rules into the host page.
Audit Metadata