Command Injection Affecting secure_headers package, versions >=6.0.0, <6.2.0>=5.0.0, <5.1.0<3.8.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.81% (76th 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-RUBY-SECUREHEADERS-543239
  • published24 Jan 2020
  • disclosed21 Jan 2020
  • creditGreg Ose, mvgijssel

Introduced: 21 Jan 2020

CVE-2020-5217  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade secure_headers to version 6.2.0, 5.1.0, 3.8.0 or higher.

Overview

secure_headers is a library that manages application of security headers with many safe defaults.

Affected versions of this package are vulnerable to Command Injection. If user-supplied input was passed into append/override_content_security_policy_directives, a semicolon could be injected and used to override a script directive, leading to command injection.

References

CVSS Base Scores

version 3.1