CVE-2021-32817

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2021-32817
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32817.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-32817
Aliases
Published
2021-05-14T19:15:07Z
Modified
2024-09-03T03:49:42.228266Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

express-hbs is an Express handlebars template engine. express-hbs mixes pure template data with engine configuration options through the Express render API. More specifically, the layout parameter may trigger file disclosure vulnerabilities in downstream applications. This potential vulnerability is somewhat restricted in that only files with existing extentions (i.e. file.extension) can be included, files that lack an extension will have .hbs appended to them. For complete details refer to the referenced GHSL-2021-019 report. Notes in documentation have been added to help users of express-hbs avoid this potential information exposure vulnerability.

References

Affected packages

Git / github.com/express-handlebars/express-handlebars

Affected ranges

Type
GIT
Repo
https://github.com/express-handlebars/express-handlebars
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Type
GIT
Repo
https://github.com/tryghost/express-hbs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.3
0.7.4
0.7.5

1.*

1.0.1
1.0.2
1.0.3
1.0.4

2.*

2.0.0
2.0.1
2.0.2

v0.*

v0.1.0
v0.1.1
v0.1.2
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.4.0
v0.4.1
v0.5.0
v0.5.1
v0.7.11
v0.7.6
v0.7.7
v0.7.8
v0.7.9
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.8.4

v1.*

v1.0.0
v1.0.0-rc-1
v1.0.0-rc-2
v1.0.1
v1.0.2
v1.0.3
v1.1.0
v1.2.0
v1.2.1
v1.2.2

v2.*

v2.0.0
v2.0.1
v2.1.0
v2.1.1
v2.1.2
v2.2.0
v2.3.0
v2.3.1
v2.3.2
v2.3.3
v2.3.4
v2.3.5

v3.*

v3.0.0
v3.0.1
v3.0.2
v3.1.0

v4.*

v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4
v4.0.5
v4.0.6

v5.*

v5.0.0
v5.1.0
v5.2.0
v5.2.1
v5.3.0
v5.3.1
v5.3.2