CVE-2011-4457: Owasp java html sanitizer OWASP HTML Sanitizer Allows Redirecting Vulnerability
LOWCVE-2011-4457 is a LOW owasp html sanitizer allows redirecting vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Owasp java html sanitizer libraries in the Maven ecosystem. The issue involves owasp html sanitizer allows redirecting to an arbitrary url when javascript is disabled. Remediation is available by upgrading affected packages to version 88.
CVE-2011-4457 at a Glance
How to Fix CVE-2011-4457
To remediate this vulnerability, upgrade all affected Owasp java html sanitizer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
<artifactId>owasp-java-html-sanitizer</artifactId>
<version>88</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.googlecode.owasp-java-html-sanitizer
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2011-4457, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.googlecode.owasp-java-html-sanitizer
Analyze the terminal output to locate any version of Owasp java html sanitizer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 88), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.googlecode.owasp-java-html-sanitizer command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Owasp java html sanitizer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2011-4457 Affected Owasp java html sanitizer Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer
|
Maven |
< 88
|
88
|
References
Frequently Asked Questions
What is CVE-2011-4457?
Which Owasp java html sanitizer versions are affected?
What version fixes CVE-2011-4457?
Is owasp-java-html-sanitizer affected?
What CWE is associated with CVE-2011-4457?
How can I check Maven dependencies for CVE-2011-4457?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pcm9-fp55-563v",
"modified" : "2024-01-19T17:48:40Z",
"published" : "2022-05-17T05:36:48Z",
"aliases" : [ "CVE-2011-4457" ],
"summary" : "OWASP HTML Sanitizer allows redirecting to an arbitrary URL when JavaScript is disabled",
"details" : "OWASP HTML Sanitizer (aka owasp-java-html-sanitizer) before 88, when JavaScript is disabled, allows user-assisted remote attackers to obtain potentially sensitive information via a crafted FORM element within a NOSCRIPT element. ",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "88"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-4457"
}, {
"type" : "WEB",
"url" : "https://github.com/OWASP/java-html-sanitizer/commit/2027d3df73f62eb30b7f08269f346989f03144bd"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/OWASP/java-html-sanitizer"
}, {
"type" : "WEB",
"url" : "https://github.com/OWASP/java-html-sanitizer/blob/35c506cfd452dba634202f13a7cc2e2a63ad7ee0/change_log.md?plain=1#L103"
}, {
"type" : "WEB",
"url" : "https://github.com/OWASP/java-html-sanitizer/blob/35c506cfd452dba634202f13a7cc2e2a63ad7ee0/docs/cve20114457.md"
}, {
"type" : "WEB",
"url" : "http://code.google.com/p/owasp-java-html-sanitizer/wiki/CVE20114457"
}, {
"type" : "WEB",
"url" : "http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/CHANGE_LOG.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-19T17:48:40Z",
"nvd_published_at" : "2011-11-17T23:55:00Z"
}
}