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 value property descriptor of the global HTMLTextAreaElement. 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-textareaautoresize attribute is read from textarea elements in textareaResize.ts and textareaResize.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 the addCss function in addCss.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
Risk Level
SAFE
Analyzed
Dec 5, 2026, 03:49 AM