From e043bf59c9bb83e4094ce8ed0fe56856302f2b63 Mon Sep 17 00:00:00 2001
From: loong10k <20489781+loong10k@users.noreply.github.com>
Date: Fri, 14 Aug 2026 03:12:06 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20pf4j=20=E7=A4=BA?=
=?UTF-8?q?=E4=BE=8B=E4=B8=AD=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=20Spring?=
=?UTF-8?q?=204.3.6=20=E4=BE=9D=E8=B5=96=EF=BC=8C=E5=85=B3=E9=97=AD=2022?=
=?UTF-8?q?=20=E6=9D=A1=20Dependabot=20=E5=91=8A=E8=AD=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 两个 pf4j 插件示例的源码零 Spring import(仅用 javax.servlet),
pom 中声明的 spring-aop/aspects/beans/context/context-support/
core/web/webmvc 4.3.6(depMgmt)与 spring-web(test 模块)从未使用
- Spring 4.3.x 已 EOL,相关 CVE(路径穿越/XSS/请求走私/DoS 等)在
4.x/5.x 线均无修复版本;移除未使用依赖即消除攻击面
- 同步移除 spring.version 属性
---
.../pf4j-plugin-test/pom.xml | 7 ---
.../pf4j-plugin-sample/pom.xml | 50 -------------------
.../pf4j2-plugin-test/pom.xml | 7 ---
.../pf4j2-plugin-sample/pom.xml | 50 -------------------
4 files changed, 114 deletions(-)
diff --git a/spring-boot-sample-pf4j/pf4j-plugin-sample/pf4j-plugin-test/pom.xml b/spring-boot-sample-pf4j/pf4j-plugin-sample/pf4j-plugin-test/pom.xml
index 5482c97..a0166f0 100644
--- a/spring-boot-sample-pf4j/pf4j-plugin-sample/pf4j-plugin-test/pom.xml
+++ b/spring-boot-sample-pf4j/pf4j-plugin-sample/pf4j-plugin-test/pom.xml
@@ -39,13 +39,6 @@
-
-
- org.springframework
- spring-web
- true
-
-
ro.fortsoft.pf4j
diff --git a/spring-boot-sample-pf4j/pf4j-plugin-sample/pom.xml b/spring-boot-sample-pf4j/pf4j-plugin-sample/pom.xml
index 23040ec..07ae3cf 100644
--- a/spring-boot-sample-pf4j/pf4j-plugin-sample/pom.xml
+++ b/spring-boot-sample-pf4j/pf4j-plugin-sample/pom.xml
@@ -27,7 +27,6 @@
0.4.0
0.3.2
1.7.21
- 4.3.6.RELEASE
@@ -116,62 +115,13 @@
-
-
- org.springframework
- spring-aop
- ${spring.version}
-
-
-
- org.springframework
- spring-aspects
- ${spring.version}
-
-
-
- org.springframework
- spring-beans
- ${spring.version}
-
-
-
- org.springframework
- spring-context
- ${spring.version}
-
-
-
- org.springframework
- spring-context-support
- ${spring.version}
-
-
-
- org.springframework
- spring-core
- ${spring.version}
-
-
-
- org.springframework
- spring-web
- ${spring.version}
-
-
-
- org.springframework
- spring-webmvc
- ${spring.version}
-
-
diff --git a/spring-boot-sample-pf4j2/pf4j2-plugin-sample/pf4j2-plugin-test/pom.xml b/spring-boot-sample-pf4j2/pf4j2-plugin-sample/pf4j2-plugin-test/pom.xml
index 657626b..5f8f5d5 100644
--- a/spring-boot-sample-pf4j2/pf4j2-plugin-sample/pf4j2-plugin-test/pom.xml
+++ b/spring-boot-sample-pf4j2/pf4j2-plugin-sample/pf4j2-plugin-test/pom.xml
@@ -39,13 +39,6 @@
-
-
- org.springframework
- spring-web
- true
-
-
org.pf4j
diff --git a/spring-boot-sample-pf4j2/pf4j2-plugin-sample/pom.xml b/spring-boot-sample-pf4j2/pf4j2-plugin-sample/pom.xml
index 1ea4f2e..636dfe4 100644
--- a/spring-boot-sample-pf4j2/pf4j2-plugin-sample/pom.xml
+++ b/spring-boot-sample-pf4j2/pf4j2-plugin-sample/pom.xml
@@ -27,7 +27,6 @@
2.0.0
0.4.0
1.7.21
- 4.3.6.RELEASE
@@ -116,62 +115,13 @@
-
-
- org.springframework
- spring-aop
- ${spring.version}
-
-
-
- org.springframework
- spring-aspects
- ${spring.version}
-
-
-
- org.springframework
- spring-beans
- ${spring.version}
-
-
-
- org.springframework
- spring-context
- ${spring.version}
-
-
-
- org.springframework
- spring-context-support
- ${spring.version}
-
-
-
- org.springframework
- spring-core
- ${spring.version}
-
-
-
- org.springframework
- spring-web
- ${spring.version}
-
-
-
- org.springframework
- spring-webmvc
- ${spring.version}
-
-