Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-40047][TEST] Exclude unused xalan transitive dependency from htmlunit #37481

Closed
wants to merge 1 commit into from

Conversation

LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Aug 11, 2022

What changes were proposed in this pull request?

This pr exclude xalan from htmlunit to clean warning of CVE-2022-34169:

Provides transitive vulnerable dependency xalan:xalan:2.7.2
CVE-2022-34169 7.5 Integer Coercion Error vulnerability with medium severity found
Results powered by Checkmarx(c)

xalan:xalan:2.7.2 is the latest version, the code base has not been updated for 5 years, so can't solve by upgrading xalan.

Why are the changes needed?

The vulnerability is described is CVE-2022-34169, better to exclude it although it's just test dependency for Spark.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  • Pass GitHub Actions
  • Manual test:

run mvn dependency:tree -Phadoop-3 -Phadoop-cloud -Pmesos -Pyarn -Pkinesis-asl -Phive-thriftserver -Pspark-ganglia-lgpl -Pkubernetes -Phive | grep xalan to check that xalan is not matched after this pr

@github-actions github-actions bot added the BUILD label Aug 11, 2022
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the test dependency, we had better have [TESTS] tag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK~ I'll remember to add it next time

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-40047][BUILD] Exclude xalan from htmlunit to clean warning of CVE-2022-34169 [SPARK-40047][BUILD][TEST] Exclude unused xalan from htmlunit Aug 11, 2022
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-40047][BUILD][TEST] Exclude unused xalan from htmlunit [SPARK-40047][TEST] Exclude unused xalan from htmlunit Aug 11, 2022
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-40047][TEST] Exclude unused xalan from htmlunit [SPARK-40047][TEST] Exclude unused xalan transitive dependency from htmlunit Aug 11, 2022
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @LuciferYang .

dongjoon-hyun pushed a commit that referenced this pull request Aug 11, 2022
… `htmlunit`

### What changes were proposed in this pull request?
This pr exclude `xalan` from `htmlunit` to clean warning of CVE-2022-34169:

```
Provides transitive vulnerable dependency xalan:xalan:2.7.2
CVE-2022-34169 7.5 Integer Coercion Error vulnerability with medium severity found
Results powered by Checkmarx(c)
```
`xalan:xalan:2.7.2` is the latest version, the code base has not been updated for 5 years, so can't solve by upgrading `xalan`.

### Why are the changes needed?
The vulnerability is described is [CVE-2022-34169](GHSA-9339-86wc-4qgf), better to exclude it although it's just test dependency for Spark.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?

- Pass GitHub Actions
- Manual test:

run `mvn dependency:tree -Phadoop-3 -Phadoop-cloud -Pmesos -Pyarn -Pkinesis-asl -Phive-thriftserver -Pspark-ganglia-lgpl -Pkubernetes -Phive | grep xalan` to check that `xalan` is not matched after this pr

Closes #37481 from LuciferYang/exclude-xalan.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 7f3baa7)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun pushed a commit that referenced this pull request Aug 11, 2022
… `htmlunit`

### What changes were proposed in this pull request?
This pr exclude `xalan` from `htmlunit` to clean warning of CVE-2022-34169:

```
Provides transitive vulnerable dependency xalan:xalan:2.7.2
CVE-2022-34169 7.5 Integer Coercion Error vulnerability with medium severity found
Results powered by Checkmarx(c)
```
`xalan:xalan:2.7.2` is the latest version, the code base has not been updated for 5 years, so can't solve by upgrading `xalan`.

### Why are the changes needed?
The vulnerability is described is [CVE-2022-34169](GHSA-9339-86wc-4qgf), better to exclude it although it's just test dependency for Spark.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?

- Pass GitHub Actions
- Manual test:

run `mvn dependency:tree -Phadoop-3 -Phadoop-cloud -Pmesos -Pyarn -Pkinesis-asl -Phive-thriftserver -Pspark-ganglia-lgpl -Pkubernetes -Phive | grep xalan` to check that `xalan` is not matched after this pr

Closes #37481 from LuciferYang/exclude-xalan.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 7f3baa7)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@LuciferYang
Copy link
Contributor Author

thanks @dongjoon-hyun

sunchao pushed a commit to sunchao/spark that referenced this pull request Jun 2, 2023
… `htmlunit`

### What changes were proposed in this pull request?
This pr exclude `xalan` from `htmlunit` to clean warning of CVE-2022-34169:

```
Provides transitive vulnerable dependency xalan:xalan:2.7.2
CVE-2022-34169 7.5 Integer Coercion Error vulnerability with medium severity found
Results powered by Checkmarx(c)
```
`xalan:xalan:2.7.2` is the latest version, the code base has not been updated for 5 years, so can't solve by upgrading `xalan`.

### Why are the changes needed?
The vulnerability is described is [CVE-2022-34169](GHSA-9339-86wc-4qgf), better to exclude it although it's just test dependency for Spark.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?

- Pass GitHub Actions
- Manual test:

run `mvn dependency:tree -Phadoop-3 -Phadoop-cloud -Pmesos -Pyarn -Pkinesis-asl -Phive-thriftserver -Pspark-ganglia-lgpl -Pkubernetes -Phive | grep xalan` to check that `xalan` is not matched after this pr

Closes apache#37481 from LuciferYang/exclude-xalan.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 7f3baa7)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants