WordPress HTML Language Attribute Escaping

By
Sooraj V Nair
Published on
26 Jun 2018

The HTML lang attribute is used to identify the language of the web application. This attribute helps search engines return language specific results. It is also used by screen readers that switch language profiles. Old versions of WordPress is vulnerable to this vulnerability.An issue in WordPress caused applications not to properly escape the lang attribute of an HTML element in In wp-includes/general-template.php. This issue might allow an attacker to exploit XSS via the language setting of a site.

Impact and Fixes

Automated human-like penetration testing for your web apps & APIs
Teams using Beagle Security are set up in minutes, embrace release-based CI/CD security testing and save up to 65% with timely remediation of vulnerabilities. Sign up for a free account to see what it can do for you.

Written by
Sooraj V Nair
Sooraj V Nair
Cyber Security Engineer
Find website security issues in a flash
Improve your website's security posture with proactive vulnerability detection.
Free website security assessment
Experience the power of automated penetration testing & contextual reporting.