Java Library Vulnerability Fixing Through Dependency Tree Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing software development practices face challenges in efficiently detecting, fixing, and monitoring vulnerabilities in Java libraries, particularly due to the interconnected nature of libraries and the difficulty in quantifying the impact of security flaws, which can affect thousands of applications.

Innovation Solution

A method and system for automatic detection, fixing, and monitoring of vulnerabilities in Java libraries, involving scanning dependency trees, replacing vulnerable versions with safe ones, using external security tools, and testing APIs, with support for Maven and Gradle build tools, and utilizing a graph database to manage dependencies and vulnerabilities.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If automated vulnerability detection tools are used, then detection efficiency is improved, but false positives and inability to quantify impact remain

Engineering Contradiction:
Improvevulnerability detection efficiencyVSAvoidimpact quantification accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The system implements continuous feedback loops where vulnerability detection results trigger automated impact analysis, which then feeds back into prioritized remediation actions. This closed-loop approach allows the system to learn from detection outcomes and improve both detection accuracy and impact quantification over time.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent introduces an intermediary impact analysis layer between vulnerability detection and remediation. This intermediary component analyzes dependency trees and code execution paths to quantify the actual impact of vulnerabilities, bridging the gap between detection tools and actionable insights.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If library dependencies are upgraded to fix vulnerabilities, then security is improved, but compatibility issues and breakage may occur

Engineering Contradiction:
Improvesecurity reliabilityVSAvoidcompatibility
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The system performs preliminary compatibility analysis before applying vulnerability fixes. By analyzing dependency trees and testing upgrade scenarios in advance, the system identifies potential compatibility issues and prepares mitigation strategies, allowing security updates to be applied with minimal disruption to existing functionality.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent employs parameter changes by adjusting dependency versions systematically. Instead of abrupt upgrades, the system modifies version parameters incrementally, testing each change for compatibility while maintaining security improvements. This allows gradual transition to secure versions while preserving system stability.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If comprehensive vulnerability scanning is performed on all dependencies, then detection coverage is improved, but processing time and computational resources increase

Engineering Contradiction:
Improvevulnerability detection coverageVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system segments the vulnerability scanning process by analyzing dependency trees in a hierarchical manner. Instead of scanning all dependencies uniformly, it prioritizes scanning critical paths and high-impact dependencies first, allowing comprehensive coverage of essential components while reducing overall processing time through selective deep analysis.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies partial action by performing comprehensive vulnerability scanning only on critical dependency paths that have the highest potential impact. For less critical dependencies, it uses lighter scanning methods, achieving sufficient detection coverage for high-risk areas while minimizing processing time and resource consumption.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS12475230B2Systems and methods for automatic detection, fixing, and monitoring vulnerabilities in java libraries
Publication Date: 2025.11.18 CLOUD LINUX SOFTWARE INC
  • US12475230B2 patent drawing
  • US12475230B2 patent drawing
  • US12475230B2 patent drawing

AI summary

Disclosed herein are systems and methods for automatic detection, fixing, and monitoring of vulnerabilities. In one aspect, an exemplary method comprises receiving as an input an artifact, when the received artifact is vulnerable, building the artifact for a new release, scanning a library containing the new release of the artifact to determine whether the library is safe for publishing, and publishing the library to an accessible artifact depository when the library is safe for publishing. In one aspect, the building of the artifact for the new release includes, scanning a dependency tree, replacing the vulnerable version by a safe version of the artifact when a safe version is available, fixing the vulnerable version of the artifact using known patches when a safe version of the artifact is not available, adding a postfix to a group ID of the artifact for distinguishing the fixed version from prior versions of the artifact.