{"id":"CVE-2023-28120","aliases":["CVE-2023-28120","GHSA-pj73-v5mw-pm9j"],"related":[],"kind":"vulnerability","state":"published","title":"Possible XSS Security Vulnerability in SafeBuffer#bytesplice","summary":"There is a vulnerability in ActiveSupport if the new bytesplice method is called on a SafeBuffer with untrusted user input.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"There is a vulnerability in ActiveSupport if the new bytesplice method is called on a SafeBuffer with untrusted user input.","source":"cvelist"},{"lang":"en","text":"There is a vulnerability in ActiveSupport if the new bytesplice method is called on a SafeBuffer with untrusted user input.\nThis vulnerability has been assigned the CVE identifier CVE-2023-28120.\n\nVersions Affected: All. Not affected: None Fixed Versions: 7.0.4.3, 6.1.7.3\n\n# Impact\n\nActiveSupport uses the SafeBuffer string subclass to tag strings as html_safe after they have been sanitized.\nWhen these strings are mutated, the tag is should be removed to mark them as no longer being html_safe.\n\nRuby 3.2 introduced a new bytesplice method which ActiveSupport did not yet understand to be a mutation.\nUsers on older versions of Ruby are likely unaffected.\n\nAll users running an affected release and using bytesplice should either upgrade or use one of the workarounds immediately.\n\n# Workarounds\n\nAvoid calling bytesplice on a SafeBuffer (html_safe) string with untrusted user input.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Existe una vulnerabilidad en ActiveSupport si se llama al nuevo método bytesplice en un SafeBuffer con una entrada de usuario no confiable.","source":"nvd"}],"published":"2023-03-15T21:36:01.000Z","modified":"2026-06-17T05:46:54.923Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"7.0.4.3","fixed":"7.0.4.3","status":"affected"},{"type":"custom","introduced":"6.1.7.3","fixed":"6.1.7.3","status":"affected"}],"vendor":"Rails","product":"ActiveSupport","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.4.3"}],"ecosystem":"RubyGems","package":"activesupport","purl":"pkg:gem/activesupport","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.1.7.3"}],"ecosystem":"RubyGems","package":"activesupport","purl":"pkg:gem/activesupport","source":"ghsa"}],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2023-28120-possible-xss-security-vulnerability-in-safebuffer-bytesplice/82469","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rails/rails/commit/3cf23c3f891e2e81c977ea4ab83b62bc2a444b70","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UPV6PVCX4VDJHLFFT42EXBBSGAWZICOW/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZE5W4MH6IE4DV7GELDK6ISCSTFLHKSYO/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20240202-0006/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2023/dsa-5389","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28120","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-28120.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UPV6PVCX4VDJHLFFT42EXBBSGAWZICOW","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZE5W4MH6IE4DV7GELDK6ISCSTFLHKSYO","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20240202-0006","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-09T21:44:02.886Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-28120","url":"https://www.cve.org/CVERecord?id=CVE-2023-28120","licence":"CVE Terms of Use","modified":"2025-01-09T21:46:38.220Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pj73-v5mw-pm9j","url":"https://github.com/advisories/GHSA-pj73-v5mw-pm9j","licence":"CC-BY-4.0","modified":"2025-01-10T18:48:18.957Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-28120","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28120","licence":"Public domain","modified":"2026-06-17T05:46:54.923Z"}],"updatedAt":"2026-11-25T22:58:34.492Z","epss":{"score":0.00948,"percentile":0.62184,"date":"2026-12-01T12:00:22.000Z"}}