Title: Malformed script injections
Last modified: August 22, 2016

---

# Malformed script injections

 *  [Robertooooo](https://wordpress.org/support/users/robertooooo/)
 * (@robertooooo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/malformed-script-injections/)
 * I have installed the plugin CodeStyling Localization and it say me that the theme
   have this error:
 * Scripting Guard – hardening against plugin/theme based malformed script injections
 * Some authors of plugins and themes does not care about how they attach javascripts
   into WordPress backend pages. They pollute pages from other plugins with their
   own script code and damage the proper function of those plugins.
 * The plugin Codestyling Localization introduced a high sophisticated inject detection
   and will show error messages, if themes or plugins try to inject their own scripts
   into this plugin pages. Furthermore all embedded scripts will be safe guarded
   and traced in case they will raise runtime exceptions. Doing so this plugin protects
   itself of malfunction caused by 3rd party plugin/theme authors. This will ensure
   the correct behavoir for this page, but expect at other backend pages malfunctioning
   code, because this is a global issue.
 * CDN – Javascripts loaded using Content Delivery Networks instead of WordPress
   provide files
 * Some Blog owner decide to replace the location where the Javascripts will be 
   loaded from by using a Plugin. In normal cases this should work proper but sometimes
   WordPress includes versions of Scripts not yet hosted at CDN provider. The Guard
   will threat CDN usage as warning and checks if all files can be load from CDN.
   If not possible to load at least one file, additionally an error message will
   be issued to show, that this page will not work as expected.
 * What can I do, if I get this protection message alert?
 * If your Installation has this kind of problems, please contact the author of 
   theme or plugin(s) which inject their script code either accidentally or intentionally(
   click message details). He/she must repair the affected theme/plugin to play 
   nicely with other plugins at WordPress backend and/or restrict its scripts to
   the 3rd party theme/plugin pages only.
 * Theme & Plugin Authors – exclusion from Guard for developers
 * You may have written a Plugin or Theme that requires scripts at all pages but
   play nicely at backend pages. In those cases please send me an email with your
   repository link. I will check this Plugin or Theme and exclude it from trace,
   if the test will show, that it is working well.
 * Can anybody help me ? Thanks

The topic ‘Malformed script injections’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/kage/1.1.0/screenshot.png)
 * Kage
 * [Support Threads](https://wordpress.org/support/theme/kage/)
 * [Active Topics](https://wordpress.org/support/theme/kage/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/kage/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/kage/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Robertooooo](https://wordpress.org/support/users/robertooooo/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/malformed-script-injections/)
 * Status: not resolved