MetaDataHeaderItem in Apache Wicket contains an XSS vulnerability in how it handles attribute values passed through addTagAttribute. The critical issue is not that escaping is absent — it is that escaping appears to be present in a way that actively misleads developers.

The framework escapes attribute names by replacing < and > with their HTML entities, which is visible, testable, and reassuring to code reviewers. However, attribute values receive only a naive replacement of double quotes with backslash-double-quote sequences — a transformation that has no meaning in HTML parsing contexts. An attacker who controls an attribute value can inject a double quote to break out of the attribute context and append malicious markup.

The dangerous implication: developers who see the name-escaping logic reasonably conclude the framework handles encoding concerns for this API. They do not suspect that addTagAttribute represents an XSS vector, because the framework demonstrated attention to escaping elsewhere. The CVE documentation now reveals values "have never been escaped effectively" — meaning developers operating under earlier versions had no reason to suspect the escaping was theater. This is the false-protection failure. When a framework presents escaping logic, developers rationally deprioritize manual escaping of those inputs.

The IModel dimension compounds this. Because values may derive from models rather than literals, you cannot audit dangerous data flows by inspecting code for raw strings. An attacker with control over any data source feeding an IModel bound to addTagAttribute has a viable injection path — the attack surface is invisible to static review.

Audit your codebase for calls to addTagAttribute where the value argument is an IModel, user-provided data, or data from external systems. If any such usage exists, wrap the value in a proper HTML-encoding function before passing it. The framework provides no opt-in safe mode — you must treat all values as potentially untrusted and escape them at the application layer. This vulnerability affects versions 6.17.0 through 10.10.0 across six distinct release branches.