Skip to content

Commit

Permalink
chore(sec): add false positive suppression for stax2-api
Browse files Browse the repository at this point in the history
The origin of CVE-2022-40152 is chaotic at best. It first popped
up in x-stream/xstream#304.

There was a problem with Woodstox, which was resolved for version 6.4.0
in FasterXML/woodstox#160.

Now the CVE is reported on the *API* package, not the implementation.
We're safe here and can suppress the CPE as false positive.
  • Loading branch information
poikilotherm committed Feb 9, 2023
1 parent 06f85e9 commit 5c79194
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maven-security.yml
Expand Up @@ -26,7 +26,7 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Scan with OWASP
run: mvn -B -Powasp compile dependency-check:check -pl '!report'
run: mvn -B -Powasp compile dependency-check:check -pl '!report,!xoai-data-provider-tck'
- name: Upload scan results as SARIF report to GitHub Security Tab
uses: github/codeql-action/upload-sarif@v2
if: always() # do not skip this step if OWASP fails the mvn build
Expand Down
11 changes: 11 additions & 0 deletions owaspSuppression.xml
@@ -1,3 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">

<suppress base="true">
<notes>
<![CDATA[
False positive, as stax2-api is not the implementation and woodstox has been fixed with v6.4.0
]]>
</notes>
<packageUrl>pkg:maven/org.codehaus.woodstox/stax2-api@4.2.1</packageUrl>
<cve>CVE-2022-40152</cve>
</suppress>

</suppressions>

0 comments on commit 5c79194

Please sign in to comment.