CVE-2013-5151
Description
Mobile Safari in iOS before 7 renders text/plain content as HTML, enabling cross-site scripting (XSS) via file upload.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Mobile Safari in iOS before 7 renders text/plain content as HTML, enabling cross-site scripting (XSS) via file upload.
Vulnerability
Mobile Safari in Apple iOS versions before 7 does not enforce the text/plain content type when rendering a document. Instead, it interprets the content as HTML. This allows a remote attacker to upload a file containing arbitrary HTML or JavaScript, which the browser then executes in the security context of the site hosting the file [1]. The issue affects all devices running iOS prior to version 7, including iPhone 4 and later, iPod touch (5th generation) and later, and iPad 2 and later.
Exploitation
An attacker needs to be able to upload a file to a web server that serves user-uploaded content with the text/plain MIME type. The attacker crafts a file containing HTML and JavaScript, uploads it, and then lures a victim into visiting the URL of the uploaded file. No special network position or authentication is required beyond the ability to post the malicious file. The victim simply needs to open the URL in Mobile Safari.
Impact
Successful exploitation results in cross-site scripting (XSS). The attacker's script executes within the security context of the domain from which the file was served, allowing the attacker to read cookies, modify the page content, or perform actions on behalf of the victim user within that domain. This can lead to session hijacking, data theft, or further compromise of the user's session.
Mitigation
The vulnerability is fixed in iOS 7, released on September 18, 2013 [1]. Users should update to iOS 7 or later. There is no workaround published for unpatched versions. No evidence of this CVE being listed on the CISA Known Exploited Vulnerabilities (KEV) catalog was found in the provided references.
AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
49cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:*+ 47 more
- cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:*range: <=6.1.4
- cpe:2.3:o:apple:iphone_os:1.0.0:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:1.0.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:1.0.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:1.1.0:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:1.1.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:1.1.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:1.1.3:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:1.1.4:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:1.1.5:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:2.0:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:2.0.0:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:2.0.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:2.0.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:2.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:2.1.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:2.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:2.2.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:3.0:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:3.0.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:3.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:3.1.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:3.1.3:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:3.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:3.2.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:3.2.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.0:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.0.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.0.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.2.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.2.5:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.2.8:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.3.0:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.3.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.3.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.3.3:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:4.3.5:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:5.0:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:5.0.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:5.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:5.1.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:6.0.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:6.0.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:6.1:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:6.1.2:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:6.1.3:*:*:*:*:*:*:*
- Range: <7
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- lists.apple.com/archives/security-announce/2013/Sep/msg00006.htmlnvdVendor Advisory
- secunia.com/advisories/54886nvdVendor Advisory
- support.apple.com/kb/HT5934nvdVendor Advisory
- www.securitytracker.com/id/1029054nvd
News mentions
0No linked articles in our index yet.