Skip to content

Commit 9542452

Browse files
Merge pull request #379 from matestack/dependabot/npm_and_yarn/yarn-1.22.0
Bump yarn from 1.19.1 to 1.22.0
2 parents f6e8eb1 + ed7e66a commit 9542452

File tree

3 files changed

+72
-6
lines changed

3 files changed

+72
-6
lines changed

CHANGELOG.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,103 @@
66

77
[Solved Issues](https://github.com/basemate/matestack-ui-core/issues?q=is%3Aissue+is%3Aclosed+milestone%3A0.7.4)
88

9+
### Security Fixes
10+
11+
XSS/Script injection vulnerablilty fixed in 0.7.4
12+
13+
* matestack-ui-core was vulnerable to XSS/Script injection
14+
* matestack-ui-core did not excape strings by default and did not cover this in the docs
15+
* matestack-ui-core should have escaped strings by default in order to prevent XSS/Script injection vulnerability
16+
* 0.7.4 fixes that by performing string escaping by default now
17+
* a new component `unescaped` (like `plain` before) allows to render unsecaped strings, but forces the developer to explicitly make a concious decision about that
18+
19+
```ruby
20+
class Pages::MyApp::MyExamplePage < Matestack::Ui::Page
21+
22+
class FakeUser < Struct.new(:name)
23+
end
24+
25+
def prepare
26+
@user = FakeUser.new("<script>alert('such hack many wow')</script>")
27+
end
28+
29+
def response
30+
components {
31+
div do
32+
heading size: 1, text: "Hello #{@user.name}" # was not escaped , from 0.7.4 on it's escaped
33+
plain "Hello #{@user.name}" # was not escaped, from 0.7.4 on it's escaped
34+
unescaped "Hello #{@user.name}" # is not escaped, as intended
35+
end
36+
}
37+
end
38+
end
39+
40+
```
41+
42+
Affected Versions
43+
44+
<= 0.7.3
45+
46+
Patched Versions
47+
48+
>= 0.7.4 --> please update!
49+
50+
Workarounds
51+
52+
escape string explicitly/manually
53+
54+
reported by @PragTob
55+
956
### Improvements
1057

1158
* On form submit, matestack form values are reset to previous values by fiedl
59+
1260
--> The form component now does not reset itself when using `put`
61+
1362
--> The reset behavior can now be configured (described in `form` component docs)
1463

1564
* Dockerized core dev and test environment by jonasjabari
65+
1666
--> easy local dev and test setup, cross-platform default for dev and testing
67+
1768
--> CI is configured to run tests via dockerized test suite; same as local testing and good base for matrix testing (upcoming)
69+
1870
--> Usage described in contribution docs
1971

2072
* Add `follow_response` option to action component by fiedl
73+
2174
--> same behavior enhancement as added to the `form` component in 0.7.3
75+
2276
--> server may now decide where the transition should navigate to
77+
2378
--> described in `action` component docs
2479

2580
* Add confirm option to action component by fiedl
81+
2682
--> easily add confirmation before performing an action
83+
2784
--> prevent unintended delete action for example
85+
2886
--> described in `action` component docs
2987

3088
* New webpacker features by fiedl
89+
3190
* make webpacker create es5 code instead of es6 code
91+
3292
* Switch to Vue Production Mode if RAILS_ENV=staging or production
93+
3394
* Establish webpack(er) and asset-pipeline workflows
3495

3596
--> webpacker now builds assets for asset pipline usage AND webpacker usage (both usage approaches are described in the installation docs)
97+
3698
--> webpacker now builds minified versions of matestack-ui-core.js (great improvement in file size!)
99+
37100
--> webpacker now builds es5 code, which is compatible with IE11
101+
38102
--> when used via asset pipeline, the minified version of matestack-ui-core together with the production build of vue.js is automatically required
39-
--> when used via webpacker, matestack-ui-core can be used within a modern javascript workflow, importing and extending single matestack module for example
103+
104+
--> when used via webpacker, matestack-ui-core can be used within a modern javascript workflow, importing and extending
105+
single matestack module for example
40106

41107
* New components
42108
* Add HTML `<picture>` tag to core components by pascalwengerter

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"v-runtime-template": "^1.5.2",
1010
"vue": "^2.5.17",
1111
"vuex": "^3.0.1",
12-
"yarn": "^1.17.3"
12+
"yarn": "^1.22.0"
1313
},
1414
"exports": {
1515
"./concepts/": "./app/concepts/matestack/ui/core/"

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ vuex@^3.0.1:
101101
resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.1.1.tgz#0c264bfe30cdbccf96ab9db3177d211828a5910e"
102102
integrity sha512-ER5moSbLZuNSMBFnEBVGhQ1uCBNJslH9W/Dw2W7GZN23UQA69uapP5GTT9Vm8Trc0PzBSVt6LzF3hGjmv41xcg==
103103

104-
yarn@^1.17.3:
105-
version "1.19.1"
106-
resolved "https://registry.yarnpkg.com/yarn/-/yarn-1.19.1.tgz#14b92410dd1ba5bab87a12b4a3d807f4569bea97"
107-
integrity sha512-gBnfbL9rYY05Gt0cjJhs/siqQXHYlZalTjK3nXn2QO20xbkIFPob+LlH44ML47GcR4VU9/2dYck1BWFM0Javxw==
104+
yarn@^1.22.0:
105+
version "1.22.0"
106+
resolved "https://registry.yarnpkg.com/yarn/-/yarn-1.22.0.tgz#acf82906e36bcccd1ccab1cfb73b87509667c881"
107+
integrity sha512-KMHP/Jq53jZKTY9iTUt3dIVl/be6UPs2INo96+BnZHLKxYNTfwMmlgHTaMWyGZoO74RI4AIFvnWhYrXq2USJkg==

0 commit comments

Comments
 (0)