Hexret

Web Security · Client-side

Dangling markup

Also known as: Dangling markup injection

An injected HTML tag or attribute is left unfinished, so later page text may become part of it. An outbound URL can then carry captured text without running script. Restrict the relevant fetch destinations and prevent HTML injection. One CSP directive may block one channel while leaving others.

Where you practice it

Related terms