Skip to content

Fix: wire up owasp-suppressions.xml to dependency-check Maven plugin#35340

Open
mbiuki wants to merge 3 commits intomainfrom
fix/owasp-suppression-file-mismatch-35339
Open

Fix: wire up owasp-suppressions.xml to dependency-check Maven plugin#35340
mbiuki wants to merge 3 commits intomainfrom
fix/owasp-suppression-file-mismatch-35339

Conversation

@mbiuki
Copy link
Copy Markdown
Contributor

@mbiuki mbiuki commented Apr 15, 2026

Summary

Fixes #35339

One-line fix in parent/pom.xml: corrects the <suppressionFile> reference from the non-existent dependency-check-suppressions.xml to the actual owasp-suppressions.xml that lives at the repo root.

Since commit 62e8d60061 (PR #27461, Feb 2024) the security-check Maven profile has been running the OWASP dependency-check plugin with zero suppressions — causing all 21 documented Elasticsearch client false positives to appear as live CVE findings. owasp-suppressions.xml existed and was maintained but was never wired up.

Before:
```xml
dependency-check-suppressions.xml
```

After:
```xml
owasp-suppressions.xml
```

Test plan

  • Run ./mvnw dependency-check:check -P security-check and confirm the 21 Elasticsearch client CVEs are correctly suppressed (no false-positive failures)
  • Confirm owasp-suppressions.xml is loaded — the plugin log should reference it at startup

🤖 Generated with Claude Code

Fixes #35339

parent/pom.xml referenced dependency-check-suppressions.xml which has
never existed, causing the security-check profile to run with zero
suppressions since Feb 2024 (commit 62e8d60 / PR #27461).

The actual suppression file is owasp-suppressions.xml at the repo root
(21 documented false-positive suppressions for Elasticsearch client JARs).
Correcting the filename so the plugin loads them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mbiuki
Copy link
Copy Markdown
Contributor Author

mbiuki commented Apr 15, 2026

Test Notes

This is a single-line configuration change in parent/pom.xml — no Java source was modified, so there are no unit tests to run.

Verification requires running the actual OWASP dependency-check plugin:

```bash
./mvnw dependency-check:check -P security-check
```

Expected outcome after the fix:

  • Plugin log references owasp-suppressions.xml at startup
  • All 21 Elasticsearch client CVE false positives are suppressed (no build failure from them)

The change can also be verified statically: owasp-suppressions.xml exists at the repo root (confirmed), dependency-check-suppressions.xml never existed (confirmed via git log — absent since the repo's beginning).

@mbiuki mbiuki self-assigned this Apr 15, 2026
@github-actions github-actions bot added the Area : Backend PR changes Java/Maven backend code label Apr 15, 2026
mbiuki and others added 2 commits April 15, 2026 16:37
…parent/pom.xml

The suppression file lives at the repo root, but parent/pom.xml is one
level deeper in parent/. A bare filename resolves relative to the module
basedir (parent/), so the correct path is
\${project.basedir}/../owasp-suppressions.xml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-located the suppression file with the pom that references it and
updated the path to \${project.basedir}/owasp-suppressions.xml so it
resolves cleanly without directory traversal.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area : Backend PR changes Java/Maven backend code

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

OWASP dependency-check plugin loads no suppressions — wrong filename referenced in parent/pom.xml

1 participant