CVE-2018-1000643: Antisamy Antisamy Vulnerability
MODERATECVE-2018-1000643 is a MODERATE antisamy vulnerability (General Security Weakness) affecting Antisamy libraries in the Maven ecosystem. The issue involves antisamy. Remediation is available in the latest vendor maintenance releases.
CVE-2018-1000643 at a Glance
How to Fix CVE-2018-1000643
To remediate this vulnerability, upgrade all affected Antisamy 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>org.owasp.antisamy</groupId>
<artifactId>antisamy</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.owasp.antisamy
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2018-1000643, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.owasp.antisamy
Analyze the terminal output to locate any version of Antisamy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.owasp.antisamy 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 General Security Weakness. In Antisamy, 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-2018-1000643 Affected Antisamy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.owasp.antisamy:antisamy
|
Maven |
≤ 1.5.7
|
|
References
Frequently Asked Questions
What is CVE-2018-1000643?
Which Antisamy versions are affected?
What version fixes CVE-2018-1000643?
Is antisamy affected?
What CWE is associated with CVE-2018-1000643?
How can I check Maven dependencies for CVE-2018-1000643?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xv6v-72hh-g6g2",
"modified" : "2020-06-16T22:04:31Z",
"published" : "2018-10-18T17:22:26Z",
"withdrawn" : "2020-06-16T22:04:31Z",
"aliases" : [ "CVE-2018-1000643" ],
"summary" : "Moderate severity vulnerability that affects org.owasp.antisamy:antisamy",
"details" : "OWASP OWASP ANTISAMY version 1.5.7 and earlier contains a Cross Site Scripting (XSS) vulnerability in AntiSamy.scan() - for both SAX & DOM that can result in Cross Site Scripting.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.owasp.antisamy:antisamy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.5.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000643"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-xv6v-72hh-g6g2"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T22:04:31Z",
"nvd_published_at" : null
}
}