---
title: "TYPO3-PSA-2019-004: Cross-Site Scripting in jQuery before 3.4.0"
url: "https://news.typo3.com/security/advisory/typo3-psa-2019-004"
description: It has been discovered that 3rd party library jQuery bundled with TYPO3 is vulnerable to cross-site scripting through prototype pollution.
image: "https://news.typo3.com/_assets/d1e01514e4c4a5b3147940fa2ec50682/Images/og-image-news.jpg"
date: 2026-06-11
modified: 2026-06-11
categories:
  - "Developer & Technology"
  - Public Service Announcement
---

# TYPO3-PSA-2019-004: Cross-Site Scripting in jQuery before 3.4.0

- [Developer & Technology](https://news.typo3.com/article/category/developer-technology)
- Security / [Public Service Announcement](https://news.typo3.com/article/category/security/public-service-announcement)

TYPO3-PSA-2019-004: Cross-Site Scripting in jQuery before 3.4.0
===============================================================

07 May 2019

![A laptop screen displaying a list of security advisories](https://news.typo3.com/typo3temp/assets/_processed_/d/c/csm_security_blog_default_77f8e86036.webp)

It has been discovered that 3rd party library jQuery bundled with TYPO3 is vulnerable to cross-site scripting through prototype pollution.

- ![](https://news.typo3.com/typo3temp/assets/t3g/blog/gravatar/b8266fdc667b773926c59081862ab148.jpeg)[Oliver Hader](https://news.typo3.com/article/author/oliver-hader)

- **Release Date:** Date: May 7, 2019
- **Component:** jQuery (bundled in TYPO3 core package, ext:core)
- **Impact:** Cross-Site Scripting, Known Vulnerability
- **Affected Versions:** all jQuery versions before 3.4.0
- **CVE:** [CVE-2019-11358](https://nvd.nist.gov/vuln/detail/CVE-2019-11358)

### Problem Description

jQuery before 3.4.0 mishandles *jQuery.extend(true, {}, ...)* because of *Object.prototype* pollution. If an unsanitized source object contained an enumerable *\_\_proto\_\_* property, it could extend the native Object.prototype.

Compromised JSON results can lead to modified behavior of a whole JavaScript application if passed through jQuery.extend like shown in the following example (source <https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/>).

```

jQuery.extend(true, {},
  JSON.parse('{"__proto__": {"test": true}}')
);
console.log( "test" in {} ); // true
```

### Solution

An official fix has been released with jQuery version 3.4.0 which also contains code deprecations. In order to keep backward compatibility TYPO3 just integrated according minimal changes that address the vulnerability described.

Update to TYPO3 version 8.7.25 or 9.5.6 that fix the problem.

Patch diffs for previous jQuery versions are available at <https://github.com/DanielRuf/snyk-js-jquery-174006?files=1>

Extension authors bundling jQuery versions with their source code are advised to upgrade or patch those vulnerable versions accordingly.

### Credits

Thanks to [Daniel Ruf](https://github.com/DanielRuf) for providing patch diffs for previous jQuery versions.

### General Advice

Follow the recommendations that are given in the [TYPO3 Security Guide](https://docs.typo3.org/typo3cms/CoreApiReference/Security/Index.html#security-guidelines). Please subscribe to the [typo3-announce](http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-announce) mailing list.

![](https://news.typo3.com/typo3temp/assets/t3g/blog/gravatar/cc7cba9757f98fbe05023a139119df74.jpeg)

About the Author

[Oliver Hader](https://news.typo3.com/article/author/oliver-hader)

Core Developer at TYPO3 GmbH,Hof, Germany

[Website](https://typo3.com)[Twitter](https://twitter.com/ohader)[LinkedIn](https://www.linkedin.com/in/oliverhader/)[Xing](https://www.xing.com/profile/Oliver_Hader)

Oliver started to work with TYPO3 in 2005 and was fascinated by the product and its universe. Since 2007 he is member of the TYPO3 Core Team. After going back to university in 2014 for achieving a postgraduate master degree in internet web science, he is now researching on advanced web technology topics in general and for TYPO3 in particular.

In his spare time, Oliver loves to go cycling cross-country in the uplands around Hof (Germany) in northern Bavaria - at the region where he's living as well.

[More posts by this author](https://news.typo3.com/article/author/oliver-hader)