iamoceans opened a new pull request, #722:
URL: https://github.com/apache/doris-flink-connector/pull/722
# Proposed changes
Issue Number: close #707
## Problem Summary:
The standalone `doris-regression` module pins `com.alibaba:fastjson:1.2.83`,
which is
affected by CVE-2026-16723 (CWE-502, CVSS 9.8; affects fastjson 1.2.68 -
1.2.83) and is
flagged as critical by SCA scanners. This change migrates the module's only
fastjson usage
to `com.alibaba.fastjson2:fastjson2:2.0.65`, the fixed 2.x line recommended
in the issue.
Only the dependency declaration and the two imports in
`DatabaseFullSync.java` change.
The three calls used there -- `JSON.parseObject(String)`,
`JSONObject.getJSONObject(String)`
and `JSONObject.getString(String)` -- keep the same signatures in fastjson2,
so the
record-filtering logic is unchanged. The shaded regression jar now bundles
fastjson2
classes and no longer bundles any `com.alibaba.fastjson` 1.x classes.
## Checklist(Required)
1. Does it affect the original behavior: No
2. Has unit tests been added: No - the standalone `doris-regression` module
has no test
sources; the change is dependency-only and compile/package-verified, see
Further comments.
3. Has document been added or modified: No Need
4. Does it need to update dependencies: Yes - `com.alibaba:fastjson:1.2.83`
is replaced by
`com.alibaba.fastjson2:fastjson2:2.0.65` (Apache-2.0, Java 8 compatible).
5. Are there any changes that cannot be rolled back: No
## Further comments
- `doris-regression` is intentionally outside the connector Maven reactor
(see its README)
and is not built by this repository's CI; it is consumed by the Apache
Doris regression
suite. Its default `doris.connector.version` is `26.2.0-SNAPSHOT`, which
is not published
to Maven Central. Local verification therefore compiled with
`-Ddoris.connector.version=26.2.0` (released); the normal CI/pipeline
build resolves the
in-repo connector artifact.
- fastjson2 2.0.65 was chosen over a minimal 1.2.84 bump because the 1.x
line is still
flagged by many scanners; `fastjson2` also removes the original
AutoType-based gadget
surface. No other fastjson reference exists in the repository.
- Verification performed locally: `mvn dependency:get` for fastjson2 2.0.65;
`javap` on the
downloaded jar (API signatures and class file major version 52 = Java 8);
`mvn -f doris-regression/pom.xml -Ddoris.connector.version=26.2.0
-DskipTests clean compile`
and `... package` (both BUILD SUCCESS); jar content check (fastjson2
present, 1.x absent).
- AI assistance was used to prepare this patch and run the local
verification.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]