#3730·grype

False positives: --add-cpes-if-none maps tomcat-embed-el to apache:tomcat CPE

Author: ojacquemartCreated Sep 23, 2026Updated Sep 23, 2026
Labelsbugfalse-positive

Vulnerability ID: CPE-based false positives for org.apache.tomcat.embed:[email protected], including:

  • CVE-2026-34486
  • CVE-2016-5425
  • CVE-2026-41293
  • CVE-2026-43512
  • CVE-2026-43515
  • CVE-2026-55956
  • CVE-2026-65905
  • CVE-2026-65637
  • CVE-2026-41284
  • CVE-2026-68763
  • CVE-2026-65927
  • CVE-2026-68525
  • CVE-2026-65182
  • CVE-2016-6325
  • CVE-2026-55276
  • CVE-2026-42498
  • CVE-2026-59084
  • CVE-2026-66422
  • CVE-2026-68569
  • CVE-2026-43513
  • CVE-2026-65183
  • CVE-2026-34483
  • CVE-2026-34487
  • CVE-2026-59083
  • CVE-2026-73180
  • CVE-2026-66299
  • CVE-2026-34500
  • CVE-2026-55955
  • CVE-2026-43514

Package URL or steps to reproduce:

Create a minimal CycloneDX SBOM:

bash
cat > tomcat-embed-el.cdx.json <<'EOF'
{
  "bomFormat": "CycloneDX",
  "specVersion": "1.4",
  "version": 1,
  "components": [
    {
      "type": "library",
      "group": "org.apache.tomcat.embed",
      "name": "tomcat-embed-el",
      "version": "11.0.20",
      "purl": "pkg:maven/org.apache.tomcat.embed/[email protected]?type=jar"
    }
  ]
}
EOF

Run Grype with CPE generation:

bash
GRYPE_MATCH_JAVA_USING_CPES=true \
  grype sbom:tomcat-embed-el.cdx.json --add-cpes-if-none -o json

Observed: Grype generates/uses the broad Apache Tomcat CPE:

  cpe:2.3:a:apache:tomcat:11.0.20:*:*:*:*:*:*:*

and reports full Apache Tomcat server/runtime CVEs against the EL-only artifact.

Without synthetic CPE generation, these findings disappear:

bash
  grype sbom:tomcat-embed-el.cdx.json -o json

Anything else we need to know?:

tomcat-embed-el is the EL-only Maven artifact:

  pkg:maven/org.apache.tomcat.embed/[email protected]?type=jar

The reported CVEs appear to be Tomcat server/runtime/auth/security-constraint/rewrite-valve/AJP/WebSocket/cluster/logging issues, not vulnerabilities in the EL-only jar.

Expected behavior: Grype should not generate/use the broad:

  cpe:2.3:a:apache:tomcat:*

for:

  org.apache.tomcat.embed:tomcat-embed-el

or should avoid matching full Tomcat server CVEs against this EL-only artifact.

Environment:

  • Output of grype version:
  Application:         grype
  Version:             0.119.0
  Platform:            windows/amd64
  Syft Version:        v1.51.0
  Supported DB Schema: 6
  • OS: Windows