Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting github.com/swift-server/swift-prometheus package, versions >=2.0.0-alpha.1 <2.0.0-alpha.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SWIFT-SWIFTSERVERSWIFTPROMETHEUS-6514822
  • published31 Mar 2024
  • disclosed29 Mar 2024
  • creditJonas Dörr

Introduced: 29 Mar 2024

CVE-2024-28867  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade swift-server/swift-prometheus to version 2.0.0-alpha.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') due to the usage of un-sanitized string values into metric names or labels. An attacker could exploit this by sending a ?lang query parameter containing newlines, } or similar characters, which can lead to taking over the exported format. This includes creating unbounded numbers of stored metrics, inflating server memory usage, or generating false metrics.

References

CVSS Scores

version 3.1