Skip to content

Commit 7bd34fb

Browse files
committedFeb 7, 2019
Update release notes
1 parent 56fc676 commit 7bd34fb

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed
 

‎release-notes.md

+38-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,44 @@
22

33
## Development
44

5-
[Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...master)
5+
[Commits](https://github.com/wycats/handlebars.js/compare/v4.1.0...master)
6+
7+
## v4.1.0 - February 7th, 2019
8+
New Features
9+
10+
- import TypeScript typings - 27ac1ee
11+
12+
Security fixes:
13+
14+
- disallow access to the constructor in templates to prevent RCE - 42841c4, #1495
15+
16+
Housekeeping
17+
18+
- chore: fix components/handlebars package.json and auto-update on release - bacd473
19+
- chore: Use node 10 to build handlebars - 78dd89c
20+
- chore/doc: Add more release docs - 6b87c21
21+
22+
Compatibility notes:
23+
24+
Access to class constructors (i.e. `({}).constructor`) is now prohibited to prevent
25+
Remote Code Execution. This means that following construct will no work anymore:
26+
27+
```
28+
class SomeClass {
29+
}
30+
31+
SomeClass.staticProperty = 'static'
32+
33+
var template = Handlebars.compile('{{constructor.staticProperty}}');
34+
document.getElementById('output').innerHTML = template(new SomeClass());
35+
// expected: 'static', but now this is empty.
36+
```
37+
38+
This kind of access is not the intended use of Handlebars and leads to the vulnerability described in #1495. We will **not** increase the major version, because such use is not intended or documented, and because of the potential impact of the issue (we fear that most people won't use a new major version and the issue may not be resolved on many systems).
39+
40+
41+
42+
[Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...v4.1.0)
643

744
## v4.0.12 - September 4th, 2018
845
New features:

0 commit comments

Comments
 (0)
Please sign in to comment.