security: remediate dependency CVEs, image packages, SQLi, CI token scope - #52
Merged
Merged
Conversation
…en scope Dependency CVEs (Gradle resolutionStrategy + dependency-management overrides): - plexus-utils 3.6.1 (CVE-2025-67030) - lz4-java 1.11.1 (CVE-2026-59949) - jackson-bom 2.21.5, databind 2.21.5 (GHSA-mhm7-754m-9p8w) - commons-lang3 3.18.0 (CVE-2025-48924) Docker image: apk upgrade in runtime stage (p11-kit CVE-2026-2100, libexpat CVE-2026-56408/56412). npm (website): js-yaml 4.3.1, uuid 11.1.1, postcss 8.5.23 (audit now 0 vulns). npm (ui): dompurify 3.4.13. SQL injection: identifier guards on JDBC metadata discovery at both the service and connector SPI boundaries. CI: least-privilege GITHUB_TOKEN permissions on workflow + every job.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remediation of every reported security finding: dependency CVEs, container-image packages, npm advisories, SQL injection, and CI token scoping.
Dependency CVEs (Gradle)
extractFile), via Debezium → maven-artifact.@JsonViewbypass). Fixed by re-importingjackson-bom:2.21.5after Spring Boot's BOM (which pins vulnerable 2.21.4); the BOM constraint beatsresolutionStrategy.force/eachDependency.Docker image
apk --no-cache upgradein the runtime stage — fixes p11-kit-trust CVE-2026-2100 and libexpat CVE-2026-56408/CVE-2026-56412, and future-proofs against the same class of Alpine-package CVE.npm
npm audit→ 0 vulnerabilities.SQL injection
[A-Za-z_][A-Za-z0-9_$]*) onschema/tablereaching JDBC metadata — at theMetadataDiscoveryServiceservice boundary (all API/controller/AI/pipeline callers) and again at theAbstractJdbcMetadataConnectorSPI boundary (any direct connector user). Rejects quotes, separators, whitespace, empty, leading digits.CI security
GITHUB_TOKEN: workflow-levelcontents: readdefault + explicitpermissionson all 13 jobs.docker-buildescalates topackages: write(ghcr push);security-scantosecurity-events: write(SARIF). No job inherits write-all.Verification
gradlew :syncflow-api:dependenciesconfirms the forced versions resolve.compileJavafor api/connectors/common clean (only pre-existing MapStructtenantIdwarning).npm audit0 vulns (website); UI build +tsc -bpass.permissionsblock.Follow-up
lekhrocks/syncflow:1scan (Dockerfile fix is in but not yet deployed).