Hello jemagaro,
Since Safari is an integrated part of macOS, you would need to upgrade macOS in order to update Safari. Depending on your model, you can use the applicable resource below to see if your Mac is compatible with a newer version of macOS:
Identify your MacBook model - Apple Support
Identify your MacBook Air model - Apple Support
Identify your MacBook Pro model - Apple Support
Identify your iMac model - Apple Support
Identify your Mac mini model - Apple Support
Identify your Mac Pro model - Apple Support
If your Mac is compatible with a newer version of macOS, the details from this resource can help with the upgrade process: How to download and install macOS - Apple Support
Should you have any further concerns, don't hesitate to let us know.