Security fix: the pymoptions shortcode/block attribute is now parsed against an allowlist of known Pym.js Parent options (xdomain, title, name, id, sandbox, parenturlparam, parenturlvalue, allowfullscreen, optionalparams, trackscroll, scrollwait) and JSON-encoded at output time. Previously the attribute was inlined verbatim into the new pym.Parent(…) call, which made it a stored XSS sink for any user who could author content. Documented usage (e.g. pymoptions=” xdomain: ‘*.npr.org’ “) continues to work; arbitrary JavaScript values are dropped.
Backwards-incompatible change: the pluggable function pym_shortcode_script_footer_enqueue now receives $args[‘pymoptions’] as an associative array of sanitized options rather than a raw JavaScript object body string. Sites that override this pluggable function must update their override to consume the array (and JSON-encode it safely on output).
New features:
Other updates:
This is a major update! Please read the release notes.
Following the practice begun at plugin version 1.1.2 of having the plugin version number match the version number of the bundled copy of Pym.js, the first three numbers in this plugin’s version do not change with this release because the Pym.js version has not changed. We’ve tacked a .1 on to the end to denote this release. Please read the release notes and test your site as appropriate before upgrading in production.
We wish to thank all who helped us test the release candidate for this version, including Mike Janssen at Current.org and Alyson Hurt at the NPR Visuals Team.
New features:
Changes:
Removed:
Plugin Website
Visit website
Share Post
Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.