Needs work
Project:
Drupal core
Version:
main
Component:
ajax system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Jul 2026 at 12:08 UTC
Updated:
16 Oct 2026 at 14:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
prudloff commentedComment #5
velmir_taky commentedAdded the warning on the $action param: HTMX runs it as-is, so it must never contain untrusted input (XSS). Docblock only, phpcs clean.
AI-assisted, verified locally.
Comment #6
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #7
velmir_taky commentedRebased on main.
on()also got the array form since I opened this, so the warning now sits in the method description instead of on$action- that way it covers both. Docblock only.Comment #8
smustgrave commentedSummary and MR don't appear to line up.
Comment #9
velmir_taky commentedComment #10
smustgrave commentedCan I ask if this was you or was AI used as before?
Comment #11
velmir_taky commentedMostly me on this one. It's two lines of docblock - I traced that on() drops $action straight into the data-hx-on-* attr htmx evals, so the warning has to go on the method, not just $action (the array form doesn't use $action at all). Used AI for the wording like I said in #5, that's it.
Comment #12
smustgrave commentedRock on
Comment #13
smustgrave commentedCan we change to "The inline scripts run as-is, so must never contain untrusted input."
Dropped "they" as that doesn't seem like correct language here. Also dropped the vulnerability to not declare it.
Also summary mentions this is about $action should the description not be attached to that variable vs floating above it?