{"id":"CVE-2022-31000","aliases":["GHSA-8639-qx56-r428"],"url":"https://o3.security/vulnerability/CVE-2022-31000","summary":"CSRF allows attacker to finalize/unfinalize order adjustments in solidus_backend","details":"### Impact\nCSRF vulnerability allowing attackers to change the state of an order's adjustments if they hold its number, and the execution happens on a store administrator's computer.\n\nReproduction steps:\n- Take an order's number.\n- Log in as an administrator.\n- Visit that order's adjustments section (_Orders -> {Click on number} -> Adjustments_) and check that its adjustments are finalized (closed padlock under the **State** column).\n- On another tab, visit `{your_site_url}/admin/orders/{order_number}/adjustments/unfinalize`.\n- Notice how the adjustments are unfinalized (open padlock), even if the previous was a `GET` request which could have been linked from any other site.\n- Visit `{your_site_url}/admin/orders/{order_number}/adjustments/finalize`.\n- Notice how the adjustments are again finalized.\n\nThat happened because both routes were handled as `GET` requests, which are skipped by Rails anti-forgery protection.\n\n### Patches\nUsers should upgrade to solidus_backend v3.1.6, v3.0.6, or v2.11.16, depending on the major and minor versions in use.\n\n### References\n- [Rails CSRF protection](https://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html).\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n- Open an [issue](https://github.com/solidusio/solidus/issues) or a [discussion](https://github.com/solidusio/solidus/discussions) in Solidus.\n- Email us at [security@solidus.io](mailto:security@soliidus.io)\n- Contact the core team on [Slack](http://slack.solidus.io/)\n","published":"2022-06-01T17:25:11Z","modified":"2026-08-12T03:51:13.999646309Z","cvss":{"score":2.3,"severity":"LOW","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N"},"epss":{"score":0.00386,"percentile":0.32418,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"RubyGems","name":"solidus_backend","fixedVersion":"2.11.16"},{"ecosystem":"RubyGems","name":"solidus_backend","fixedVersion":"3.0.6"},{"ecosystem":"RubyGems","name":"solidus_backend","fixedVersion":"3.1.6"}],"fix":{"url":"https://github.com/solidusio/solidus/commit/de796a2e0be7f154cae48b46e267501559d9716c","label":"solidusio/solidus@de796a2"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31000.json"},{"type":"ADVISORY","url":"https://github.com/solidusio/solidus/security/advisories/GHSA-8639-qx56-r428"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31000"},{"type":"FIX","url":"https://github.com/solidusio/solidus/commit/de796a2e0be7f154cae48b46e267501559d9716c"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/solidus_backend/CVE-2022-31000.yml"},{"type":"PACKAGE","url":"https://github.com/solidusio/solidus"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:13.999646309Z"}}