CVE-2018-1000643: Antisamy Antisamy Vulnerability

MODERATE
Advisory Identifier: GHSA-xv6v-72hh-g6g2
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2018-1000643
GHSA Identifier GHSA-xv6v-72hh-g6g2
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Antisamy
Package Ecosystem Maven
Published Date
Last Updated

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.

org.owasp.antisamy:antisamy fixed: Latest secure release
<dependency>
    <groupId>org.owasp.antisamy</groupId>
    <artifactId>antisamy</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2018-1000643 is a security vulnerability in Antisamy involving antisamy under General Security Weakness.
Which Antisamy versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.owasp.antisamy:antisamy.
What version fixes CVE-2018-1000643?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is antisamy affected?
Yes, org.owasp.antisamy:antisamy is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2018-1000643?
CVE-2018-1000643 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2018-1000643?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.owasp.antisamy'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}