HTML Injection Affecting cucumber package, versions <4.0.0


Severity

Recommended
0.0
medium
0
10

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

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 Learn

Learn about HTML Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-CUCUMBER-20442
  • published9 Nov 2017
  • disclosed21 Nov 2016
  • creditAlexey Bezhan

Introduced: 21 Nov 2016

CVE NOT AVAILABLE CWE-80  (opens in a new tab)

How to fix?

Upgrade cucumber to version 4.0.0 or higher.

Overview

Affected versions of this package are vulnerable to HTML Injection. The HTML formatter appends any scenario output to the HTML without escaping HTML tags in the messages. This way, any output from the steps gets injected into the report page. In the simple case, this won't display the message as expected. When combined with for example capybara and CI environments this opens up the possibility of an XSS attack from the user input on the environment being tested.

References

CVSS Scores

version 3.1