Title: WP REST API: Versions 1.2.3 (Security Release) and 2.0 Beta 4
Author: Ryan McCue
Published: August 14, 2015
Last modified: October 7, 2015

---

 [  ](https://profiles.wordpress.org/rmccue/) [Ryan McCue](https://profiles.wordpress.org/rmccue/)
7:29 am _on_ August 14, 2015     
Tags: [feature plugins ( 122 )](https://make.wordpress.org/core/tag/feature-plugins/),
[json-api ( 39 )](https://make.wordpress.org/core/tag/json-api/), [rest-api ( 111 )](https://make.wordpress.org/core/tag/rest-api/),
[security ( 18 )](https://make.wordpress.org/core/tag/security/), [updates ( 21 )](https://make.wordpress.org/core/tag/updates/)

# WP REST API: Versions 1.2.3 (Security Release) and 2.0 Beta 4

First and foremost: version 1.2.3 of the REST APIREST API The REST API is an acronym
for the RESTful Application Program Interface (API) that uses HTTP requests to GET,
PUT, POST and DELETE data. It is how the front end of an application (think “phone
app” or “website”) can communicate with the data store (think “database” or “file
system”) [https://developer.wordpress.org/rest-api/](https://developer.wordpress.org/rest-api/)
is now available. Download it from the [plugin repository](https://wordpress.org/plugins/json-rest-api/)
or [from GitHub](https://github.com/WP-API/WP-API/releases/tag/1.2.3). This is a
security release affecting sites running version 1.2 or a 2.0 betaBeta A pre-release
of software that is given out to a large group of users to trial under real conditions.
Beta versions have gone through alpha testing in-house and are generally fairly 
close in look, feel and function to the final product; however, design changes often
occur as part of the process. releases.

### Security Release

Recently, we were alerted to a potential XSS vulnerability introduced in version
1.2 of the APIAPI An API or Application Programming Interface is a software intermediary
that allows programs to interact with each other and share data in limited, clearly
defined ways. related to the JSONP support. This vulnerability also existed in version
2.0. Thanks to Alex Concha ([@xknown](https://profiles.wordpress.org/xknown/)) for
reporting this issue to the team responsibly.

This release was coordinated by the REST API team and the WordPress coreCore Core
is the set of software required to run WordPress. The Core Development Team builds
WordPress. security team. The security team is pushing automatic updates for version
1.2.3, but **do not wait or rely on the automatic update process**. We recommend
sites or plugins that are using either v1.2.x or 2.0 beta releases **update the 
pluginPlugin A plugin is a piece of software containing a group of functions that
can be added to a WordPress website. They can extend functionality or add new features
to your WordPress websites. WordPress plugins are written in the PHP programming
language and integrate seamlessly with WordPress. These can be free in the WordPress.
org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. immediately**.

If you’d prefer not to upgrade, you can instead disable JSONP support through a 
filterFilter Filters are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
They provide a way for functions to modify data of other functions. They are the
counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
manner, and should never have side effects such as affecting global variables and
output.. For version 1:

    ```
    add_filter( 'json_jsonp_enabled', '__return_false' );
    ```

To disable JSONP on version 2:

    ```
    add_filter( 'rest_jsonp_enabled', '__return_false' );
    ```

If you have a question about the security release, you can find the team in [#core-restapi](https://make.wordpress.org/core/tag/core-restapi/)
on WordPress.orgWordPress.org The community site where WordPress code is created
and shared by the users. This is where you can download the source code for WordPress
core, plugins and themes as well as the central location for community conversations
and organization. [https://wordpress.org/](https://wordpress.org/) SlackSlack Slack
is a Collaborative Group Chat Platform [https://slack.com/](https://slack.com/).
The WordPress community has its own Slack Channel at [https://make.wordpress.org/chat/](https://make.wordpress.org/chat/),
or you can privately message [@rachelbaker](https://profiles.wordpress.org/rachelbaker/),
[@rmccue](https://profiles.wordpress.org/rmccue/), [@danielbachhuber](https://profiles.wordpress.org/danielbachhuber/),
or [@joehoyle](https://profiles.wordpress.org/joehoyle/).

### Version 2.0 Beta 4

Alongside the security release for version 1.2, we’re also releasing the latest 
beta for version 2.0: 2.0 Beta 4 _“See My Vest”_. You can download this from the
[plugin repository](https://wordpress.org/plugins/rest-api/) or [from GitHub](https://github.com/WP-API/WP-API/releases/tag/2.0-beta4).

This beta release includes the security fix from version 1.2.3, so we recommend 
everyone running a version 2 beta update immediately to fix the issue.

As well as the security release, this beta also includes a bunch of other changes.
Here’s some highlights:

 * **Show public user information through the user controller.**
 * In WordPress as of [r32683](https://core.trac.wordpress.org/changeset/32683) (
   scheduled for 4.3), `WP_User_Query` now has support for getting users with published
   posts. To match current behaviour in WordPress themes and feeds, we now expose
   this public user information. This includes the avatarAvatar An avatar is an 
   image or illustration that specifically refers to a character that represents
   an online user. It’s usually a square box that appears next to the user’s name.,
   description, user ID, custom URLURL A specific web address of a website or web
   page on the Internet, such as a website’s URL www.wordpress.org, display name,
   and URL, for users who have published at least one post on the site. This information
   is available to all clients; other fields and data for all users are still only
   available when authenticated.
 * **Send schema in OPTIONS requests and index.**
 * Rather than using separate `/schema` endpoints, the schema for items is now available
   through an OPTIONS request to the route. This means that full documentation is
   now available for endpoints through an OPTIONS request; this includes available
   methods, what data you can pass to the endpoint, and the data you’ll get back.
 * **⚠️ This breaks backwards compatibility** for clients relying on schemas being
   at their own routes. These clients should instead send OPTIONS requests.
 * **Update JavaScriptJavaScript JavaScript or JS is an object-oriented computer
   programming language commonly used to create interactive effects within web browsers.
   WordPress makes extensive use of JS for a better user experience. While PHP is
   executed on the server, JS executes within a user’s browser. [https://www.javascript.com](https://www.javascript.com/)
   API for version 2.**
 * Our fantastic JavaScript API from version 1 is now available for version 2, refreshed
   with the latest and greatest changes. Thanks to Taylor Lovett ([@tlovett1](https://profiles.wordpress.org/tlovett1/)),
   K. Adam White ([@kadamwhite](https://profiles.wordpress.org/kadamwhite/)) and
   Nathan Rice ([@nathanrice](https://profiles.wordpress.org/nathanrice/)).
 * **Embed links inside items in a collection.**
 * Previously when fetching a collection of items, you only received the items themselves.
   No longer! You can now request a collection with embeds enabled (try `/wp/v2/
   posts?_embed`).
 * **Move `/posts` `WP_Query` vars back to `filter` param.**
 * In version 1, we had internal `WP_Query` vars available via `filter` (e.g. `filter[
   s]=search+term`). For our first betas of version 2, we tried something different
   and exposed these directly on the endpoint. The experiment has now concluded;
   we didn’t like this that much, so `filter` is back.
 * **⚠️ This breaks backwards compatibility** for users using WP Query vars. Simply
   change your `x=y` parameter to `filter[x]=y`.
 * **Respect `rest_base` for taxonomies.**
 * **⚠️ This breaks backwards compatibility** by changing the `/wp/v2/posts/{id}/
   terms/post_tag` endpoint to `/wp/v2/posts/{id}/tag`.

As always, we have a [detailed changelog](https://github.com/WP-API/WP-API/releases/tag/2.0-beta4)
as well as the [full set of changes](https://github.com/WP-API/WP-API/compare/2.0-beta3...2.0-beta4)
if you’re interested.

(Note that while this version 2 beta breaks backwards compatibility, **the 1.2.3
security release does not break compatibility** with the 1.2 branchbranch A directory
in Subversion. WordPress uses branches to store the latest development code for 
each major release (3.9, 4.0, etc.). Branches are then updated with code for any
minor releases of that branch. Sometimes, a major version of WordPress and its minor
versions are collectively referred to as a "branch", such as "the 4.0 branch"..)

This release had 11 contributors, and we’d like to thank each and every one of them:

    ```
    $ git shortlog 2.0-beta3...2.0-beta4 --summary
         1   Daniel Bachhuber
        11   Daniel Jalkut
         1   Fredrik Forsmo
         1   Jared Cobb
         3   Jay Dolan
        26   Joe Hoyle
        10   Josh Pollock
        25   Rachel Baker
        50   Ryan McCue
        24   Stephen Edgar
         8   Taylor Lovett
    ```

Thank you again to all of our beta testers, and thanks to everyone who let us know
[how you’re using the API](https://make.wordpress.org/core/2015/07/23/rest-api-whos-using-this-thing/).
We’re taking note of all of your feedback, and you might see some further changes
related to that in coming releases.

[#feature-plugins](https://make.wordpress.org/core/tag/feature-plugins/), [#json-api](https://make.wordpress.org/core/tag/json-api/),
[#rest-api](https://make.wordpress.org/core/tag/rest-api/), [#security](https://make.wordpress.org/core/tag/security/),
[#updates](https://make.wordpress.org/core/tag/updates/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2015/08/14/rest-api-v1-2-3-and-v2-0-b4/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2015/08/14/rest-api-v1-2-3-and-v2-0-b4/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2015/08/14/rest-api-v1-2-3-and-v2-0-b4/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2015/08/14/rest-api-v1-2-3-and-v2-0-b4/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2015/08/14/rest-api-v1-2-3-and-v2-0-b4/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2015/08/14/rest-api-v1-2-3-and-v2-0-b4/?share=linkedin)

 1.  ![](https://secure.gravatar.com/avatar/0608b540c7da83b396fd9a453ad1ac0298152522bc3a06888d41649e4024a089?
     s=32&d=mm&r=g)
 2.   [Ahmad Awais](https://profiles.wordpress.org/mrahmadawais/)  8:18 am _on_ August
     14, 2015
 3.  Hey, Ryan!
      Did you change the folder name or main file name in WP REST APIREST
     API The REST API is an acronym for the RESTful Application Program Interface (
     API) that uses HTTP requests to GET, PUT, POST and DELETE data. It is how the 
     front end of an application (think “phone app” or “website”) can communicate with
     the data store (think “database” or “file system”) [https://developer.wordpress.org/rest-api/](https://developer.wordpress.org/rest-api/)
     1.2.3 since I am using 1.2.2 and I didn’t get any update notification, which is
     weird.
 4.   * ![](https://secure.gravatar.com/avatar/c21ff90e030a07e3a20f48a0496530828cf86ef69a464d326351423eb2570ef0?
        s=32&d=mm&r=g)
      *  [Ryan McCue](https://profiles.wordpress.org/rmccue/)  10:10 pm _on_ August
        14, 2015
      * The patchpatch A special text file that describes changes to code, by identifying
        the files and lines which are added, removed, and altered. It may also be referred
        to as a **diff**. A patch can be _applied_ to a codebase for testing. in 1.2.3
        is minimal and didn’t change the filename. If you’re using the APIAPI An API
        or Application Programming Interface is a software intermediary that allows
        programs to interact with each other and share data in limited, clearly defined
        ways. from GitHubGitHub GitHub is a website that offers online implementation
        of git repositories that can easily be shared, copied and modified by other
        developers. Public repositories are free to host, private repositories require
        a paid subscription. GitHub introduced the concept of the ‘pull request’ where
        code changes done in branches by contributors can be reviewed and discussed
        before being merged by the repository owner. [https://github.com/](https://github.com/),
        your folder might accidentally be called `WP-API`, whereas it should be `json-
        rest-api` to match the repo.
 5.  ![](https://secure.gravatar.com/avatar/009022dabc16874b24d7bd637c0c875fadd09d7384c8fbdf493901990500b2d6?
     s=32&d=mm&r=g)
 6.   [CotswoldPhoto](https://profiles.wordpress.org/cotswoldphoto/)  9:40 am _on_ 
     August 14, 2015
 7.  Great work team REST APIREST API The REST API is an acronym for the RESTful Application
     Program Interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data.
     It is how the front end of an application (think “phone app” or “website”) can
     communicate with the data store (think “database” or “file system”)
      [https://developer.wordpress.org/rest-api/](https://developer.wordpress.org/rest-api/).
     I really hope that this makes it into coreCore Core is the set of software required
     to run WordPress. The Core Development Team builds WordPress. for 4.4.
 8.  ![](https://secure.gravatar.com/avatar/f6930bb401e10b78e1654175f39666d3b16d2cda33dcae1f20109b2dc67ef5b3?
     s=32&d=mm&r=g)
 9.   [Rachel Baker](https://profiles.wordpress.org/rachelbaker/)  12:56 pm _on_ August
     14, 2015
 10. Oh, please won’t you see my vest! 🎶

Comments are closed.

# Post navigation

[← Dev Chat Agenda for August 12](https://make.wordpress.org/core/2015/08/12/dev-chat-agenda-for-august-12/)

[WordPress 4.4: What’s on your wishlist? →](https://make.wordpress.org/core/2015/08/19/wordpress-4-4-whats-on-your-wishlist/)