Skip to content

Code Security Report: 3 findings [master] #24

@mend-developer-platform-dev

Description

@mend-developer-platform-dev

Code Security Report

Scan Metadata

Latest Scan: 2025-09-17 07:56AM
Total Findings: 3 | New Findings: 0 | Resolved Findings: 0
Tested Project Files: 212
Detected Programming Languages: 1 (Java*)

Most Relevant Findings

The list below presents the 3 most relevant findings that need your attention.

Severity
Vulnerability Type
CWE
File
Data Flows
Detected
Low
Log Forging
19
2025-09-17 07:56AM
Vulnerable Code

map.put(Fields.MESSAGE, e.getMessage());
currentSpan.log(map);
String traceId = currentSpan.context().toTraceId();
message = String.format("[%s] failed with error:[%s] (TraceId: [%s])", label, e.getMessage(), traceId);
LOGGER.error(message);
}
else
{
message = String.format("[%s] failed with error:[%s])", label, e.getMessage());
LOGGER.error(message);

Data Flows (19 detected)
Data Flow #1


return handle(ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS, ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS + groupId + artifactId,

protected <T> T handle(String resourceAPIMetricName, String label, Supplier<T> supplier)

return TracerFactory.get().executeWithTrace(label, () -> handleWithLogging(resourceAPIMetricName, label, supplier));

public <T> T executeWithTrace(String label, Supplier<T> supplier)

message = String.format("[%s] failed with error:[%s] (TraceId: [%s])", label, e.getMessage(), traceId);

Data Flow #2


return handle(ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS, ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS + groupId + artifactId + versionId, () ->

protected <T> T handle(String resourceAPIMetricName, String label, Supplier<T> supplier)

return TracerFactory.get().executeWithTrace(label, () -> handleWithLogging(resourceAPIMetricName, label, supplier));

public <T> T executeWithTrace(String label, Supplier<T> supplier)

message = String.format("[%s] failed with error:[%s] (TraceId: [%s])", label, e.getMessage(), traceId);

Data Flow #3

public MetadataEventResponse updateProjectVersion(@PathParam("groupId") String groupId,

return handle(ResourceLoggingAndTracing.UPDATE_VERSION, ResourceLoggingAndTracing.UPDATE_VERSION + groupId + artifactId + versionId,

protected <T> T handle(String resourceAPIMetricName, String label, Supplier<T> supplier)

return TracerFactory.get().executeWithTrace(label, () -> handleWithLogging(resourceAPIMetricName, label, supplier));

public <T> T executeWithTrace(String label, Supplier<T> supplier)

message = String.format("[%s] failed with error:[%s] (TraceId: [%s])", label, e.getMessage(), traceId);

View more Data Flows


Secure Code Warrior Training Material
Low
Log Forging
19
2025-09-17 07:56AM
Vulnerable Code

}
else
{
message = String.format("[%s] failed with error:[%s])", label, e.getMessage());
LOGGER.error(message);
LOGGER.error("{} ( TraceId: current span not found)",message);
}
throw new TracingException(message, e);
}
finally

Data Flows (19 detected)
Data Flow #1


return handle(ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS, ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS + groupId + artifactId,

protected <T> T handle(String resourceAPIMetricName, String label, Supplier<T> supplier)

return TracerFactory.get().executeWithTrace(label, () -> handleWithLogging(resourceAPIMetricName, label, supplier));

public <T> T executeWithTrace(String label, Supplier<T> supplier)

message = String.format("[%s] failed with error:[%s])", label, e.getMessage());

Data Flow #2

public MetadataEventResponse updateProjectVersion(@PathParam("groupId") String groupId,

return handle(ResourceLoggingAndTracing.UPDATE_VERSION, ResourceLoggingAndTracing.UPDATE_VERSION + groupId + artifactId + versionId,

protected <T> T handle(String resourceAPIMetricName, String label, Supplier<T> supplier)

return TracerFactory.get().executeWithTrace(label, () -> handleWithLogging(resourceAPIMetricName, label, supplier));

public <T> T executeWithTrace(String label, Supplier<T> supplier)

message = String.format("[%s] failed with error:[%s])", label, e.getMessage());

Data Flow #3

public MetadataEventResponse updateProjectMaster(@PathParam("groupId") String groupId,

return handle(ResourceLoggingAndTracing.UPDATE_LATEST_PROJECT_REVISION, ResourceLoggingAndTracing.UPDATE_LATEST_PROJECT_REVISION + groupId + artifactId,

protected <T> T handle(String resourceAPIMetricName, String label, Supplier<T> supplier)

return TracerFactory.get().executeWithTrace(label, () -> handleWithLogging(resourceAPIMetricName, label, supplier));

public <T> T executeWithTrace(String label, Supplier<T> supplier)

message = String.format("[%s] failed with error:[%s])", label, e.getMessage());

View more Data Flows


Secure Code Warrior Training Material
Low
Log Forging
19
2025-09-17 07:56AM
Vulnerable Code

else
{
message = String.format("[%s] failed with error:[%s])", label, e.getMessage());
LOGGER.error(message);
LOGGER.error("{} ( TraceId: current span not found)",message);
}
throw new TracingException(message, e);
}
finally
{

Data Flows (19 detected)
Data Flow #1


return handle(ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS, ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS + groupId + artifactId,

protected <T> T handle(String resourceAPIMetricName, String label, Supplier<T> supplier)

return TracerFactory.get().executeWithTrace(label, () -> handleWithLogging(resourceAPIMetricName, label, supplier));

public <T> T executeWithTrace(String label, Supplier<T> supplier)

message = String.format("[%s] failed with error:[%s])", label, e.getMessage());


Data Flow #2


return handle(ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS, ResourceLoggingAndTracing.REPOSITORY_PROJECT_VERSIONS + groupId + artifactId + versionId, () ->

protected <T> T handle(String resourceAPIMetricName, String label, Supplier<T> supplier)

return TracerFactory.get().executeWithTrace(label, () -> handleWithLogging(resourceAPIMetricName, label, supplier));

public <T> T executeWithTrace(String label, Supplier<T> supplier)

message = String.format("[%s] failed with error:[%s])", label, e.getMessage());


Data Flow #3

public MetadataEventResponse updateProjectVersion(@PathParam("groupId") String groupId,

return handle(ResourceLoggingAndTracing.UPDATE_VERSION, ResourceLoggingAndTracing.UPDATE_VERSION + groupId + artifactId + versionId,

protected <T> T handle(String resourceAPIMetricName, String label, Supplier<T> supplier)

return TracerFactory.get().executeWithTrace(label, () -> handleWithLogging(resourceAPIMetricName, label, supplier));

public <T> T executeWithTrace(String label, Supplier<T> supplier)

message = String.format("[%s] failed with error:[%s])", label, e.getMessage());


View more Data Flows


Secure Code Warrior Training Material

Findings Overview

Severity Vulnerability Type CWE Language Count
Low Log Forging CWE-117 Java* 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions