Merge pull request #2191 from ing-bank/changeset-release/master

Version Packages
This commit is contained in:
Thijs Louisse 2024-02-29 16:03:33 +01:00 committed by GitHub
commit b193d22f92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 13 deletions

View file

@ -1,12 +0,0 @@
---
'@lion/ajax': major
---
BREAKING: Only add XSRF token on mutable requests and on same origin or whitelisted origins
Previously the XSRF token was added to any call to any origin.
This is changed in two ways.
(1) The token is now only attached to requests that are POST/PUT/PATCH/DELETE.
(2) It will validate if the request origin is the same as current origin or when the origin is in the xsrfTrustedOrigins.
This is a fix for a vulnerability: we inadvertently revealed the confidential XSRF-TOKEN stored in cookies by including it in the HTTP header X-XSRF-TOKEN for every request made to any host. This allowed attackers to view sensitive information.

View file

@ -1,5 +1,18 @@
# Change Log # Change Log
## 2.0.0
### Major Changes
- 04d08683: BREAKING: Only add XSRF token on mutable requests and on same origin or whitelisted origins
Previously the XSRF token was added to any call to any origin.
This is changed in two ways.
(1) The token is now only attached to requests that are POST/PUT/PATCH/DELETE.
(2) It will validate if the request origin is the same as current origin or when the origin is in the xsrfTrustedOrigins.
This is a fix for a vulnerability: we inadvertently revealed the confidential XSRF-TOKEN stored in cookies by including it in the HTTP header X-XSRF-TOKEN for every request made to any host. This allowed attackers to view sensitive information.
## 1.3.0 ## 1.3.0
### Minor Changes ### Minor Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "@lion/ajax", "name": "@lion/ajax",
"version": "1.3.0", "version": "2.0.0",
"description": "Thin wrapper around fetch with support for interceptors.", "description": "Thin wrapper around fetch with support for interceptors.",
"license": "MIT", "license": "MIT",
"author": "ing-bank", "author": "ing-bank",