<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-17T05:19:00.369106+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/cve-2023-34457</id>
    <title>CVE-2023-34457 — MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form</title>
    <updated>2026-10-17T05:19:00.370963+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> MechanicalSoup, mechanicalsoup_project mechanicalsoup</p>
<p>MechanicalSoup is a Python library for automating interaction with websites. Starting in version 0.2.0 and prior to version 1.3.0, a malicious web server can read arbitrary files on the client using a `&lt;input type="file" ...&gt;` inside HTML form. All users of MechanicalSoup's form submission are affected, unless they took very specific (and manual) steps to reset HTML form field values. Version 1.3.0 contains a patch for this issue.</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/cve-2023-34457"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-x456-3ccm-m6j4</id>
    <title>GHSA-x456-3ccm-m6j4 — MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form</title>
    <updated>2026-10-17T05:19:00.371039+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: MechanicalSoup</p>
<p>### Summary
A malicious web server can read arbitrary files on the client using a `&lt;input type="file" ...&gt;` inside HTML form.</p>
<p>### Details
This affects the extremely common pattern of form submission:</p>
<p>```python
b = mechanicalsoup.StatefulBrowser()
b.select_form(...)
b.submit_selected()
```</p>
<p>The problem is with the code in `browser.Browser.get_request_kwargs`:</p>
<p>```python
    if tag.get("type", "").lower() == "file" and multipart:
        filepath = value
        if filepath != "" and isinstance(filepath, str):
            content = open(filepath, "rb")
        else:
            content = ""
        filename = os.path.basename(filepath)
        # If value is the empty string, we still pass it
        # for consistency with browsers (see
        # https://github.com/MechanicalSoup/MechanicalSoup/issues/250).
        files[name] = (filename, content)
```</p>
<p>The file path is taken from the bs4 tag "value" attribute. However, this path will default to whatever the server sends. So if a malicious web server were to send something like:</p>
<p>```html
&lt;html&gt;&lt;body&gt;
  &lt;form method="post" enctype="multipart/form-data"&gt;
    &lt;input type="text" name="greeting" value="hello" /&gt;
    &lt;input type="file" name="evil" value="/home/user/.ssh/id_rsa" /&gt;
  &lt;/form&gt;
&lt;/body&gt;&lt;/html&gt;
```</p>
<p>then upon `.submit_selected()` the mechanicalsoup browser will happily send over the contents of your SSH private key.</p>
<p>### PoC</p>
<p>```python
import attr
import mechanicalsoup
import requests</p>
<p>class NevermindError(Exception):…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-x456-3ccm-m6j4"/>
  </entry>
</feed>
