Information Exposure Affecting express-hbs package, versions <2.4.0


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.29% (69th 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-JS-EXPRESSHBS-1293211
  • published17 May 2021
  • disclosed17 May 2021
  • creditUnknown

Introduced: 17 May 2021

CVE-2021-32817  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade express-hbs to version 2.4.0 or higher.

Overview

express-hbs is an Express handlebars template engine complete with multiple layouts, partials and blocks.

Affected versions of this package are vulnerable to Information Exposure. The layout parameter may trigger file disclosure vulnerabilities in downstream applications. This potential vulnerability is somewhat restricted in that only files with existing extensions (i.e. file.extension) can be included, files that lack an extension will have .hbs appended to them.

CVSS Scores

version 3.1