Zend_Filter_StripTags vulnerable to Cross-site Scripting when comments allowed
The advisory, in context
Zend_Filter_StripTags contained an optional setting to allow whitelisting HTML comments in filtered text. Microsoft Internet Explorer and several other browsers allow developers to create conditional functionality via HTML comments, including execution of script events and rendering of additional commented markup. By allowing whitelisting of HTML comments, a malicious user could potentially include XSS exploits within HTML comments that would then be rendered in the final output.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
From 1.7.0 before 1.7.9
Fixed in 1.7.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.7.0"
},
{
"fixed": "1.7.9"
}
],
"type": "ECOSYSTEM"
}
],
"versions": []
}From 1.8.0 before 1.8.5
Fixed in 1.8.5
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.8.0"
},
{
"fixed": "1.8.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": []
}From 1.9.0 before 1.9.7
Fixed in 1.9.7
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.9.0"
},
{
"fixed": "1.9.7"
}
],
"type": "ECOSYSTEM"
}
],
"versions": []
}