File: CVE-2019-11358.diff

package info (click to toggle)
node-jquery 2.2.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,288 kB
  • sloc: php: 122; xml: 36; makefile: 9; sh: 2
file content (20 lines) | stat: -rw-r--r-- 629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix prototype Pollution vulnerability
Author: Michał Gołębiowski-Owczarek <https://github.com/mgol>
Origin: upstream, https://github.com/jquery/jquery/commit/753d591aea698e57d6db58c9f722cd0808619b1b
Bug: https://github.com/jquery/jquery/pull/4333
Bug-Debian: https://bugs.debian.org/927385
Forwarded: not-needed
Reviewed-By: Xavier Guimard <yadd@debian.org>
Last-Update: 2019-04-23

--- a/src/core.js
+++ b/src/core.js
@@ -157,7 +157,7 @@
 				copy = options[ name ];
 
 				// Prevent never-ending loop
-				if ( target === copy ) {
+				if ( name === "__proto__" || target === copy ) {
 					continue;
 				}